DesignLibrary v0.1.3


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

Last month downloads


Type Package
License MIT + file LICENSE
Encoding UTF-8
LazyData true
RoxygenNote 6.1.1
NeedsCompilation no
Packaged 2019-05-02 22:27:37 UTC; jaspercooper
Repository CRAN
Date/Publication 2019-05-02 22:50:03 UTC

Include our badge in your README