Uses the polycor package to compute the correlations Pulls the baseline data, checks the variable type, selects the correct correlation type

compute_validity(dat, PRO.score = NULL, time.var = NULL, val.var = NULL)

Arguments

dat

dataframe with values

PRO.score

specify the COA/PRO score you want to compute ICC of. Can pass multiple scores, e.g. PRO.score = c('Y_comp', 'Y_mcar', 'Y_mar')

time.var

the time variable, should be an ordered factor

val.var

specify the validator variables (reference measures) Can pass a character string, e.g., val.var = c('PGIS', 'Val_1', 'Val_2')

Value

returns a dataframe with the correlations