fabricatr: Imagine your data before you collect it
Making decisions about research design and analysis strategies is often
difficult before data is collected, because it is hard to imagine the
exact form data will take. Instead, researchers typically modify
analysis strategies to fit the data. fabricatr helps researchers
imagine what data will look like before they collect it. Researchers can
evaluate alternative analysis strategies, find the best one given how
the data will look, and precommit before looking at the realized data.
Installing fabricatr
To install the latest stable release of fabricatr, please ensure
that you are running version 3.5 or later of R and run the following
code:
install.packages("fabricatr")
Getting started
Once you have installed fabricatr, you can easily import your own
data or generate new data. fabricatr is designed to help you solve
two key problems:
Generating variables that look like the real thing, including Likert
survey responses, treatment status, demographic variables, and
variables correlated by group.
Generating data that are structured like the real thing, including
panel data, multi-level (“nested”) data or cross-classified data.
fabricatr is easy to learn and easy to read. Consider this example
which generates data modeling the United States House of
Representatives:
For more information, read our online
tutorial to get started
with fabricatr. This tutorial will give you a brief overview of
fabricatr’s main functions and direct you towards your next steps.
You can also read our documentation inside R using the command
?fabricate as your entry point.
fabricatr: Imagine your data before you collect it
Making decisions about research design and analysis strategies is often difficult before data is collected, because it is hard to imagine the exact form data will take. Instead, researchers typically modify analysis strategies to fit the data. fabricatr helps researchers imagine what data will look like before they collect it. Researchers can evaluate alternative analysis strategies, find the best one given how the data will look, and precommit before looking at the realized data.
Installing fabricatr
To install the latest stable release of fabricatr, please ensure that you are running version 3.5 or later of R and run the following code:
Getting started
Once you have installed fabricatr, you can easily import your own data or generate new data. fabricatr is designed to help you solve two key problems:
fabricatr is easy to learn and easy to read. Consider this example which generates data modeling the United States House of Representatives:
Next Steps
For more information, read our online tutorial to get started with fabricatr. This tutorial will give you a brief overview of fabricatr’s main functions and direct you towards your next steps. You can also read our documentation inside R using the command
?fabricateas your entry point.This project is generously supported by a grant from the Laura and John Arnold Foundation and seed funding from EGAP.