Learn R Programming

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

fabricatr (version 0.4.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.4.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Graeme Blair

Last Published

March 21st, 2018

Functions in fabricatr (0.4.0)

ALL

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

Fabricate data
fabricatr

fabricatr package
cross_levels

Creates panel or cross-classified data
level

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

Find which variables are unique at a given level in hierarchical data
draw_discrete

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

Resample data, including hierarchical data
recycle

Expands data to a given length through recycling.
split_quantile

Split data into quantile buckets (e.g. terciles, quartiles, quantiles, deciles).
draw_normal_icc

Draw normal data with fixed intra-cluster correlation.
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.
correlate

Perform generation of a correlated random variable.
draw_binary_icc

Draw binary data with fixed intra-cluster correlation.