value_ADL_scores_IPD: Function to convert ADL scores to a T score

Description Usage Arguments Value Examples

View source: R/3b_outcome_analysis_functions.R

Description

Function to convert ADL scores to a T score

Usage

1
2
3
4
5
6
value_ADL_scores_IPD(
  ind_part_data,
  adl_related_words,
  adl_nrcode,
  adl_scoring_table = NULL
)

Arguments

ind_part_data

a data frame containing IPD data

adl_related_words

related words to find out which columns contain adl data

adl_nrcode

non response code for ADL

adl_scoring_table

ADL scoring table, if given as NULL use the default one

Value

ADL scores converted to T score included modified data, if success -1, if failure

Examples

1
2
3
datafile <- system.file("extdata", "trial_data.csv", package = "packDAMipd")
trial_data <- load_trial_data(datafile)
value_ADL_scores_IPD(trial_data,c("tpi"), NA, adl_scoring_table = NULL)

packDAMipd documentation built on March 3, 2021, 5:07 p.m.