sim_mixed_cc | R Documentation |
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
)
sub_n |
the number of subjects |
item_n |
the number of items |
grand_i |
the grand intercept (overall mean) |
sub_sd |
the SD of subject random intercepts (or a sub_n-length named vector of random intercepts for each subject) |
item_sd |
the SD of item random intercepts (or an item_n-length named vector of random intercepts for each item) |
error_sd |
the SD of the error term |
empirical |
Should the returned data have these exact parameters? (versus be sampled from a population with these parameters) |
seed |
DEPRECATED use set.seed() instead before running this function |
a tbl
sim_mixed_cc(10, 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.