Learn R Programming

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

DesignLibrary (version 0.1.4)

Library of Research Designs

Description

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.

Copy Link

Version

Install

install.packages('DesignLibrary')

Monthly Downloads

948

Version

0.1.4

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Jasper Cooper

Last Published

June 17th, 2019

Functions in DesignLibrary (0.1.4)

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
match.call.defaults

Argument matching with defaults
construct_design_code

Generates clean code string that reproduces design