- Fixed a bug in
rmulti()
that assigned correlations to the wrong pairs with more than 3 variables (thanks @yann1cks!) - Made
rmulti()
more efficient by skipping adjusted r simulation for normal-normal pairs - Added
nbinom2norm()
conversion function, but not sure it works right unless you setsize
andprob
manually (produces a warning if you don't)
- Fixed a bug in
interactive_design()
that didn't allow mu, sd or r with more than 0.1 accuracy, and gave incorrect error messages for r specifications with more than 1 value.
add_between()
andadd_within()
don't convert non-character levels to factors any more * submitting to CRAN (sorry for letting it get archived!)
rmulti()
function for multivariate distributions that aren't all normal (experimental)- Minor changes to
add_random()
- Fixed minor vignette bugs for CRAN
- Various minor bug fixes
- Fixed the
long
argument forsim_df()
- Improvements for
rmulti()
and associated helper functionsconvert_r()
andfh_bounds()
. - A vignette for NORTA
rmulti()
function for multivariate distributions that aren't all normal (experimental)
- Likert distribution functions
rlikert()
,dlikert()
,plikert()
andqlikert()
add_random()
now names random factor items with the full random factor name (e.g., "class1", not "c1")add_random()
allows you to set specific factor item names (see vignette)
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, ...
add_contrast()
and associated contr_code_*** functionsadd_random()
and associated mixed design building functions
get_params()
doesn't need between, within, id, and dv set for date created bysim_design()
plot_design()
can display a subset of factorssim_design()
fixed a bug in when setting n with an unnamed vector and within-subjects factors
- Added a vignette about creating random reports using the mixed effects building functions.
- fixed a bug in
sim_design()
when setting n with an unnamed vector and within-subjects factors (wouldn't run before). - Updated
add_between()
andadd_within()
to make new columns factors with the same ordering as the specification - Updated contrast functions to work with non-factor columns
add_between()
.prob argument works as expected now (and has tests)
- Updated contrasts vignette
- renamed
contr_code_deviation()
tocontr_code_anova()
- Updated contrasts vignette
- new
add_contrast()
function - renamed the contrast functions to all start with
contr_code_
- added new contrast functions and changed labelling of others
- updated contrasts vignette
plot_design()
can display a subset of factors- updated plotting vignette to explain changing palettes
- updated mixed effects builder functions to avoid column name clashes
- added experimental contrast functions and vignette
- added new mixed effect builder functions
- updated mixed effects vignette
- anonymous within and between factors in
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) - fixed
get_params()
so it doesn't need between, within, id, and dv set for date created bysim_design()
- Released on CRAN
- Fixed a typo in faceratings for one face_eth ("eats asian/white" => "east asian/white")
- Fixed a bug in
rnorm_pre()
when simulating a vector with correlations to more than 2 pre-existing vectors. - Updated vignettes for new functions and changes.
sim_design()
should no longer mangle level values in long format if they have underscoressim_design()
should play better with different separator. FOr example, if you setfaux_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
- fixed bug in
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).
- new
sim_joint_dist()
function to simulate the joint distribution of categories sim_df()
no longer breaks if there are NAs in the DV columnssim_df()
now has an option to include missing data, it simulates the joint distribution of missingness for each between-subject cell- some functions (
sim_df()
andmessy()
) 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 columnsample_from_pop()
is now vectorised
get_params()
doesn't require within and between set for data made with faux (that has a "design" attribute)- fixed bug in
get_params()
where the var column was alphabetised, but the corresponding columns for the correlation table were in factor order - several new distribution conversion functions and a vignette
- this version isn't on CRAN yet
nested_list()
updated to match scienceverse version and handle edge cases better- changes to tests for changes in CRAN development environments
rnorm_multi()
can get column names from mu, sd, or r names
- Removed a test using markdown that failed on Solaris (causing faux to be pulled from CRAN) Back on CRAN!
seed
arguments reinstated as deprecated and produce a warning
- Even more fixes for CRAN (on CRAN from 2009-08-19!)
- Removed all
seed
arguments (at the request of CRAN) - Faster unit tests
- More fixes for CRAN (fingers crossed!)
- Added a
seed
argument tornorm_multi()
- User options are no longer changed in vignettes
- Removed some dependencies
- Various bug fixes
- Submitting to CRAN again!
- Still not accepted to CRAN (but haven't worked on it in a long time)
nested_list
function for printing nested lists in Rmd- New
codebook
function and vignette - Interactive mode for codebooks (experimental)
- Updated for new tidyverse versions
- Submitting to CRAN (wish me luck!)
- Andrew Heiss added
norm2beta
function - Added contributors (Andrew Heiss and Anna Krystali)
trunc2norm
now works ifmin
ormax
are omitted.
- Added
rep
argument tosim_design()
andsim_data()
. If rep > 1, returns a nested data frame withrep
simulated datasets. - Fixed warnings on
get_params()
- Improved
make_id()
function
- Removed ANOVApower
- Added distribution conversion functions (still experimental)
- More flexible parameter specification
- Set plotting default as a global option
faux_options(plot = TRUE)
- Minor bug fixes and efficiency increases
- multi-factor cell names now in a more intuitive order (will break old code that inputs parameters with unnamed vectors)
- More flexible plotting styles (violin, jitter, box, pointrange with SD or SE, and combos)
- Minor bug fixes
- More flexible plots and data plots
- Setting seed doesn't change the seed in your global environment
- Plot labels for dv and id (set them like
dv = list(colname = "Name for Plots")
)
- Changed default DV column name from 'val' to 'y'
- Changed default ID column name from 'sub_id' to 'id'
sim_design()
can take intercept-only designsrnorm_multi()
can take vars = 1 for intercept-only designsjson_design()
to output or save design specs in JSON format- Added functions for converting between distributions
- Fixed bugs in interactive specification
- Added
messy()
(thanks Emily) - Better interactive specification (thanks Daniël)
- Bug fix for
long2wide()
(handle designs with no between or no within factors) sim_df()
returns subject IDs and takes data in long format- Renamed
check_sim_stats()
toget_params()
, which now returns the design - Added interactive option to
sim_design()
- added
sim_mixed_cc()
to simulate null cross-classified mixed effect designs by subject, item and error SDs sim_design()
,sim_df()
,sim_mixed_cc()
andsim_mixed_df()
take aseed
argument now for reproducible datasets
- Added a plot option to
check_design()
andsim_design()
- Design lists returned by
check_design()
have a more consistent format- n, mu, and sd are all data frames with between-cells as rows and within-cells as columns
within
andbetween
are named lists; factors and labels are no longer separately named
- Changes to argument order and names (more consistent, but may break old scripts)
- Updated vignettes
- Bug fixes for
sim_design()
(failed when within or between factor number was 0)
- Added a
NEWS.md
file to track changes to the package. - Added
sim_design()
to simulate data for mixed ANOVA designs.