sim_design()now names anonymous within and between factors like W and B or W1, W2, W3, …, and B1, B2, … instead of A, B, C, …
sim_design()when setting n with an unnamed vector and within-subjects factors (wouldn’t run before).
add_within()to make new columns factors with the same ordering as the specification
add_between().prob argument works as expected now (and has tests)
plot_design()can display a subset of factors
sim_design()are now named W and B or W1, W2, W3, …, B1, B2, … instead of A, B, C, … (and fixed relevant tests and vignette code)
get_params()so it doesn’t need between, within, id, and dv set for date created by
rnorm_pre()when simulating a vector with correlations to more than 2 pre-existing vectors.
sim_design()should no longer mangle level values in long format if they have underscores
sim_design()should play better with different separator. FOr example, if you set
faux_options(sep = ".")and have within-subject factors A and B with levels A_1/A_2 and B_1/B_2, your wide data will have columns A_1.B_1, A_1.B_2, A_2.B_1, A_2.B_2
sim_design()where parameters specified as a named vector couldn’t be in a different order unless both between and within factors were specified (e.g.,
mu = c(A2 = 2, A1 = 1)resulted in a mu of 2 for A1 and 1 for A2).
sim_joint_dist()function to simulate the joint distribution of categories
sim_df()no longer breaks if there are NAs in the DV columns
sim_df()now has an option to include missing data, it simulates the joint distribution of missingness for each between-subject cell
messy()) can choose columns with unquoted names now (e.g.,
messy(mtcars, .5, mpg))
messy()now takes a vector of proportions so you can simulate different amounts of missing data per selected column
sample_from_pop()is now vectorised
get_params()doesn’t require within and between set for data made with faux (that has a “design” attribute)
get_params()where the var column was alphabetised, but the corresponding columns for the correlation table were in factor order
seedarguments reinstated as deprecated and produce a warning
seedarguments (at the request of CRAN)
nested_listfunction for printing nested lists in Rmd
codebookfunction and vignette
trunc2normnow works if
faux_options(plot = TRUE)
dv = list(colname = "Name for Plots"))
sim_design()can take intercept-only designs
rnorm_multi()can take vars = 1 for intercept-only designs
json_design()to output or save design specs in JSON format
sim_design()(failed when within or between factor number was 0)
NEWS.mdfile to track changes to the package.
sim_design()to simulate data for mixed ANOVA designs.