Learn R Programming

⚠️There's a newer version (1.0.2) of this package.Take me there.

fabricatr (version 0.2.0)

Imagine Your Data Before You Collect It

Description

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.

Copy Link

Version

Install

install.packages('fabricatr')

Monthly Downloads

1,116

Version

0.2.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Graeme Blair

Last Published

January 25th, 2018

Functions in fabricatr (0.2.0)

fabricatr

fabricatr package
join

Helper function handling specification of which variables to join a cross-classified data on, and what kind of correlation structure needed. Correlation structures can only be provided if the underlying call is a `link_levels()` call.
ALL

Magic number constant to allow users to specify ALL for passthrough resampling
cross_levels

Creates panel or cross-classified data
draw_binary_icc

Draw binary data with fixed intra-cluster correlation.
draw_binomial

Draw discrete variables including binary, binomial count, poisson count, ordered, and categorical
draw_normal_icc

Draw normal data with fixed intra-cluster correlation.
add_level

Fabricate data
level

Deprecated level call function maintained to provide useful error for previous fabricatr code.
resample_data

Resample data, including hierarchical data