The simulated function is used for specifying simulated input data and variables for VPC. Note: Simulated data must not
contain missing DV and may require filtering
MDV == 0 before generating VPC. The ordering of observed and simulated
data must also be consistent, with replicates in simulated data stacked on top of each other.
simulated(o, ...) # S3 method for tidyvpcobj simulated(o, data, ysim, ...)
data.frame of simulated data.
Numeric y-variable, typically named DV.
tidyvpcobj containing simulated dataset
sim formatted with columns
repl, which indicates the replicate number.
x is used from the
observed() function. Resulting dataset is of class