Last chance! 50% off unlimited learning
Sale ends in
Makes a basic cross-classified design with random intercepts for subjects and items. See vignette("sim_mixed", package = "faux")
for examples and details.
sim_mixed_cc(
sub_n = 100,
item_n = 20,
grand_i = 0,
sub_sd = 1,
item_sd = 1,
error_sd = 1,
empirical = FALSE,
seed = NULL
)
a tbl
the number of subjects
the number of items
the grand intercept (overall mean)
the SD of subject random intercepts (or a sub_n-length named vector of random intercepts for each subject)
the SD of item random intercepts (or an item_n-length named vector of random intercepts for each item)
the SD of the error term
Should the returned data have these exact parameters? (versus be sampled from a population with these parameters)
DEPRECATED use set.seed() instead before running this function