Input cross classified simulation parameters, output cross classified structure as a function of the original id variables. This function currently only supports a single (intercept) cross classified random effect.
cross_class(num_ids, samp_size, random_param)
Number of cross classified ids to generate.
Sample size to generate, this is used to pass to the
sample
function.
A list of data generating characteristics used to generate the cross classified random effect. This function needs to include:
random_var The variance of the cross classified random effect.
rand_gen The random generating function used.
Optional elements are:
ther: Theorectial mean and variance from rand_gen,
ther_sim: Simulate mean/variance for standardization purposes,
cor_vars: Correlation between random effects,
...: Additional parameters needed for rand_gen function.
See sim_rand_eff
for additional parameters that can be passed.