Scores the Functional Assessment of Chronic Illness Therapy-Fatigue (FACIT-Fatigue) from item responses.
scoreFACIT_Fatigue(df, id = NULL, updateItems = FALSE, keepNvalid = FALSE)
A data frame with the questionnaire items, appropriately-named.
(optional) The quoted name of a variable in
(optional) Logical, if
(optional) Logical, if
Given a data frame that includes all of the FACIT-Fatigue items as variables, appropriately named, this function generates the FACIT-Fatigue scale score. It is crucial that the item variables in the supplied data frame are named according to FACT conventions. For example, the first item should be named GP1, the second GP2, and so on. Please refer to the materials provided by http://www.facit.org for the particular questionnaire you are using. In particular, refer to the left margin of the official questionnaire (i.e., from facit.org) for the appropriate item variable names.
For more details on the
see the documentation entry for
A data frame containing the following scale score is returned:
FACIT_Fatigue - FACIT Fatigue
If a variable was given to the
id argument, then that variable will
also be in the returned data frame. Additional, relatively unimportant,
variables will be returned if
updateItems = TRUE or
Keep in mind that this function (and R in general) is case-sensitive.
All items in
df should be
numeric (i.e., of type
This function expects missing item responses to be coded as
9, and valid item responses to be coded as
4. Any other value for any of the
items will result in an error message and no scores.
FACIT-Fatigue Scoring Guidelines, available at http://www.facit.org
For additional details on the function arguments, see
FACTscorer. For brevity,
examples are omitted below. However, this function is very similar to the
scoreFACTG7 function. See the documentation for
scoreFACTG7 for examples. Alternatively, examples for
scoreFACIT_Fatigue can be accessed by running
## FIRST creating a df with fake item data to score itemNames <- c('HI7', 'HI12', 'An1', 'An2', 'An3', 'An4', 'An5', 'An7', 'An8', 'An12', 'An14', 'An15', 'An16') exampleDat <- make_FACTdata(namesAC = itemNames, AConly = TRUE) ## NOW scoring the items in exampleDat ## Returns data frame with ONLY scale score (scoredDat <- scoreFACIT_Fatigue(exampleDat)) ## Using the id argument (makes merging with original data more fool-proof): (scoredDat <- scoreFACIT_Fatigue(exampleDat, id = "ID")) ## Merge back with original data, exampleDat: mergeDat <- merge(exampleDat, scoredDat, by = "ID") names(mergeDat) ## Returns scale score, plus recoded items (updateItems = TRUE) ## Also illustrates effect of setting keepNvalid = TRUE. scoredDat <- scoreFACIT_Fatigue(exampleDat, updateItems = TRUE, keepNvalid = TRUE) names(scoredDat) ## Descriptives of scored scales summary(scoredDat['FACIT_Fatigue'])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.