Simulate Longitudinal Ordinal Data

sim_val_var(
  dat,
  n.val = 5,
  n.cat = c(3, NA, NA, NA, 5),
  cor.val.ref = c(0.5, 0.6, 0.8, 0.2, 0.3)
)

Arguments

dat

pass the dataframe

n.val

numeric, number of validators

n.cat

numeric vector, number of categories in each validator, NA for continuous validator variables

cor.val.ref

Reference Measure generation, numeric vector, the correlation between the PRO score and each of the n.val validators

Value

returns a dataframe containing the simulated data