sim_mixed_df | R Documentation |
sim_mixed_df()
produces a data table with the same distributions of
by-subject and by-item random intercepts as an existing data table.
sim_mixed_df(
data,
sub_n = NULL,
item_n = NULL,
dv = "y",
sub_id = "sub_id",
item_id = "item_id"
)
data |
the existing tbl |
sub_n |
the number of subjects to simulate (if NULL, returns data for the same subjects) |
item_n |
the number of items to simulate (if NULL, returns data for the same items) |
dv |
the column name or index containing the DV |
sub_id |
the column name or index for the subject IDs |
item_id |
the column name or index for the item IDs |
a tbl
sim_mixed_df(faceratings, 10, 10, "rating", "rater_id", "face_id")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.