scoring_womac: Scoring the Western Ontario and McMaster Universities...

Description Usage Arguments Details Value References Examples

View source: R/womac.R

Description

The Western Ontario and McMaster Universities Osteoarthritis Index (WOMAC) is a widely used, proprietary set of standardized questionnaires used by health professionals to evaluate the condition of patients with osteoarthritis of the knee and hip, including pain, stiffness, and physical functioning of the joints. (Wikipedia)

Usage

1
2
3
4
5
6
7
scoring_womac(
  data,
  items = 1:24,
  keep = TRUE,
  nvalid = list(pain = 5, stiff = 2, physical = 14),
  digits = NULL
)

Arguments

data

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

items

A character vector with the WOMAC item names ordered from 1 to 24, or a numeric vector indicating the column numbers of the WOMAC 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 defaults are:

  • pain = 5 (Pain)

  • stiff = 2 (Stiffness)

  • physical = 14 (Physical Function)

digits

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

Details

Value

The function returns 7 variables:

References

Quintana et al (2005) (doi: 10.1016/j.joca.2005.06.012)

Link to questionnaire (https://www.yrmc.org/docs/default-source/medservices/womac-osteoarthritis-index.pdf?sfvrsn=0)

Examples

1
2
3
4
5
6
7
## Not run: 
library(dplyr)
library(qscorer)
df.womac <- simulate_items(num_cols = 24, item_range = 0:4, item_name = "womac")
scoring_womac(df.womac, items = 2:25, keep = FALSE)

## End(Not run)

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