scoring_iief5: Internaltional Index of Erectile Function, short form...

Description Usage Arguments Details Value References Examples

View source: R/iief.R

Description

An abridged five-item version of the 15-item International Index of Erectile Function (IIEF) was developed (IIEF-5) to diagnose the presence and severity of erectile dysfunction (ED). (Rosen et al. 2000)

Usage

1
scoring_iief5(data, items = 1:5, keep = TRUE, nvalid = 5, digits = NULL)

Arguments

data

a data.frame containing the IIEF-5 items orderd from 1 to 5

items

A character vector with the IIEF-5 item names ordered from 1 to 5, or a numeric vector indicating the column numbers of the IIEF-5 items in data.

keep

Logical, whether to keep the single items and whether to return variables containing the number of non-missing items on each scale for each respondent. The default is TRUE.

nvalid

A numeric value indicating the number of non-missing items required for score calculations. The default is 5.

digits

Integer of length one: value to round to. No rounding by default.

Details

Value

The function returns 3 variables:

References

Link to questionnaire (http://www.croesoffice.org/Portals/0/Short_IIEF.pdf)

Rosen RC, Cappelleri JC (2000) (https://doi.org/10.1038/sj.ijir.3900472)

Examples

1
2
3
4
5
6
## Not run: 
library(dplyr)
items.iief5 <- paste0("IIEF_", seq(1, 5, 1))
scoring_iief5(mydata, items = items.iief5)

## End(Not run)

nrkoehler/qscorer documentation built on April 5, 2020, 3:09 a.m.