sim_val_var: Simulate Longitudinal Ordinal Data

View source: R/sim_val_var.R

sim_val_varR Documentation

Simulate Longitudinal Ordinal Data

Description

Simulate Longitudinal Ordinal Data

Usage

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


CJangelo/COA34 documentation built on June 23, 2022, 12:10 p.m.