mhhs: Calculates the modified version of the Harris Hip Score...

Description Usage Arguments Value Examples

View source: R/mHHS_Scoring_Algorithm.R

Description

mHHS pulls item scores from an internal lookup table. If any of the items are missing mHHS does not calculate a score.

Usage

1
mhhs(data, pain, limp, support, distance, stairs, shoes, sitting, transport)

Arguments

data

A data frame.

pain

A character vector of length one specifying the name of the pain variable

limp

A character vector of length one specifying the name of the limp variable

support

A character vector of length one specifying the name of the support variable

distance

A character vector of length one specifying the name of the distance variable

stairs

A character vector of length one specifying the name of the stairs variable

shoes

A character vector of length one specifying the name of the shoes variable

sitting

A character vector of length one specifying the name of the sitting variable

transport

A character vector of length one specifying the name of the transport variable

Value

This function returns the original data frame provided as input with an additional variable storing the modified HHS score.

Examples

1
df <- mhhs(df, "hhs1r", "hhs2r", "hhs3r", "hhs4r", "hhs5r", "hhs6r", "hhs7r", "hhs8r")

mccartqm/proms documentation built on May 29, 2019, 11:40 a.m.