DesignLibrary v0.1.4


Monthly downloads



Library of Research Designs

A simple interface to build designs using the package 'DeclareDesign'. In one line of code, users can specify the parameters of individual designs and diagnose their properties. The designers can also be used to compare performance of a given design across a range of combinations of parameters, such as effect size, sample size, and assignment probabilities.

Functions in DesignLibrary

Name Description
factorial_designer Create a factorial design
multi_arm_designer Create a design with multiple experimental arms
mediation_analysis_designer Create a design for mediation analysis
return_args Generates character string for non-fixed arguments in a designer using substitution approach.
spillover_designer Create a design with spillovers
two_arm_attrition_designer Create design with risk of attrition or post treatment conditioning
two_arm_covariate_designer Create a simple two arm design with a possibly prognostic covariate
regression_discontinuity_designer Create a regression discontinuity design
randomized_response_designer Create a randomized response design
two_by_two_designer Create a two-by-two factorial design
two_arm_designer Create a one-level two-arm design
pretest_posttest_designer Create a pretest-posttest design
process_tracing_designer Create a process-tracing design
str_within Takes substring between matched strings. Avoids dependency on stringr package.
sub_expr_text Substitute text from expressions in design code
cluster_sampling_designer Create a design for cluster random sampling
get_design_code Get the code from a design
binary_iv_designer Create a binary instrumental variables design
assignment_string Generates string of assignment of value to argument
block_cluster_two_arm_designer Create a two-arm design with blocks and clusters
DesignLibrary DesignLibrary: A package for creating designs
code_fixer Substitute approach Argument matching with defaults
construct_design_code Generates clean code string that reproduces design
No Results!

Last month downloads


Type Package
License MIT + file LICENSE
Encoding UTF-8
LazyData true
RoxygenNote 6.1.1
NeedsCompilation no
Packaged 2019-06-17 18:10:15 UTC; jaspercooper
Repository CRAN
Date/Publication 2019-06-17 18:50:05 UTC

Include our badge in your README