Imagine Your Data Before You Collect It

Helps you imagine your data before you collect it. Hierarchical data structures and correlated data can be easily simulated, either from random number generators or by resampling from existing data sources. This package is faster with 'data.table' and 'mvnfast' installed.


News

fabricatr 0.8.0

  • Changes to prepare for R 3.6.0

fabricatr 0.6.0

  • Added split-modify-combine functionality to modify_level via the by argument.
  • Changed behavior of draw_ordered to ensure categories are data-independent and adding a strict option that replaces values with NA if values are outside all breaks.
  • Labeled correlate functionality as experimental.
  • Many bug fixes.

fabricatr 0.4.0

  • recycle() helper function for expanding and recycling data
  • Added correlate() function to allow users to generate arbitrary correlated random variables.
  • Added category_labels argument to draw_categorical
  • Added draw_quantile and split_quantile functions
  • Major updates to test harness
  • Changed ID label stapling behaviour in fabricate calls.
  • Allow users to pass ID_label in level creation calls to allow back-door unnamed level calls.
  • Bugfix for constants in certain modify_level contexts.
  • Changed specification of latent variables with links; users should now provide latent as an argument when using a link.
  • New syntax for using length(ID) from upper level to define N of lower level.
  • When passing a vector to draw_categorical prob argument, package now sends message instead of warning.
  • Major additions to documentation and vignettes, including vignettes for common social sciences variables, time series, and using other creation packages with fabricatr.
  • Bugfix in certain cases with single-level variables autocompleting to "data" and not working.
  • Added unique_labels argument to resample_data to allow block-level statistic calculation.

fabricatr 0.2.0

First CRAN submission for fabricatr

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("fabricatr")

0.8.0 by Graeme Blair, 2 months ago


https://declaredesign.org/r/fabricatr, https://github.com/DeclareDesign/fabricatr


Report a bug at https://github.com/DeclareDesign/fabricatr/issues


Browse source code at https://github.com/cran/fabricatr


Authors: Graeme Blair [aut, cre] , Jasper Cooper [aut] , Alexander Coppock [aut] , Macartan Humphreys [aut] , Aaron Rudkin [aut] , Neal Fultz [aut]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports rlang

Suggests testthat, data.table, mvnfast, MASS


Depended on by DeclareDesign, DesignLibrary.

Suggested by estimatr.


See at CRAN