scoring_sri: Scoring the Severe Respiratory Insufficiency Questionnaire...

Description Usage Arguments Details Value References Examples

View source: R/sri.R

Description

The SRI is a disease specific HRQL measurement [...] designed for patients with severe respiratory insufficiency due to various conditions receiving home mechanical ventilation. (Windisch et al. 2003)

Usage

1
2
3
4
5
6
7
8
9
scoring_sri(
  data,
  items = 1:49,
  keep = TRUE,
  nvalid = list(rc = 5, pf = 4, as = 4, sr = 4, ax = 3, wb = 5, sf = 5),
  digits = NULL,
  reverse = c(1, 2, 4, 5, 6, 11, 13, 14, 15, 16, 17, 19, 21, 22, 23, 24, 25, 26, 28,
    29, 30, 31, 34, 35, 38, 39, 40, 42, 43, 45, 46, 47, 48)
)

Arguments

data

a data.frame containing the SRI items orderd from 1 to 49. The data.frame may contain further variables.

items

A character vector with the SRI item names ordered from 1 to 49, or a numeric vector indicating the column numbers of the SRI 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 named list indicating the number of non-missing items required for score calculations. The defaults are:

  • rc = 5 (Respiratory Complains Score)

  • pf = 4 (Physical Functioning Score)

  • as = 4 (Attendant Symptoms and Sleep Score)

  • sr = 4 (Social Relationships Score)

  • ax = 3 (Anxiety Score)

  • wb = 5 (Psychological Well-Being Score)

  • sf = 5 (Social Functioning Score)

digits

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

Details

Value

The function returns 15 variables:

References

Examples

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

## End(Not run)

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