Package: PUMP 1.0.3

Luke Miratrix

PUMP: Power Under Multiplicity Project

Estimates power, minimum detectable effect size (MDES) and sample size requirements. The context is multilevel randomized experiments with multiple outcomes. The estimation takes into account the use of multiple testing procedures. Development of this package was supported by a grant from the Institute of Education Sciences (R305D170030). For a full package description, including a detailed technical appendix, see <doi:10.18637/jss.v108.i06>.

Authors:Luke Miratrix [aut, cre], Kristen Hunter [aut], Zarni Htet [aut], Kristin Porter [aut], MDRC [cph], Institute of Education Sciences [fnd]

PUMP_1.0.3.tar.gz
PUMP_1.0.3.zip(r-4.5)PUMP_1.0.3.zip(r-4.4)PUMP_1.0.3.zip(r-4.3)
PUMP_1.0.3.tgz(r-4.4-any)PUMP_1.0.3.tgz(r-4.3-any)
PUMP_1.0.3.tar.gz(r-4.5-noble)PUMP_1.0.3.tar.gz(r-4.4-noble)
PUMP_1.0.3.tgz(r-4.4-emscripten)PUMP_1.0.3.tgz(r-4.3-emscripten)
PUMP.pdf |PUMP.html
PUMP/json (API)

# Install 'PUMP' in R:
install.packages('PUMP', repos = c('https://mdrcny.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/mdrcny/pump/issues

On CRAN:

4.89 score 8 stars 13 scripts 596 downloads 29 exports 86 dependencies

Last updated 6 days agofrom:81e2fa718b. Checks:ERROR: 1 WARNING: 6. Indexed: yes.

TargetResultDate
Doc / VignettesFAILNov 12 2024
R-4.5-winWARNINGNov 12 2024
R-4.5-linuxWARNINGNov 12 2024
R-4.4-winWARNINGNov 12 2024
R-4.4-macWARNINGNov 12 2024
R-4.3-winWARNINGNov 12 2024
R-4.3-macWARNINGNov 12 2024

Exports:calc_dfcheck_corconvert_paramsd_mdesigngen_base_sim_datagen_cluster_idsgen_corr_matrixgen_sim_datagen_T.xgen_Yobsget_power_resultsis.pumpgridresultis.pumpresultparamsparse_d_mpower_curveprint_contextpump_infopump_mdespump_mdes_gridpump_powerpump_power_gridpump_samplepump_sample_gridpump_typesearch_pathtranspose_power_tableupdate_grid

Dependencies:abindbackportsbitbit64bootbroomcarcarDataclicliprcodetoolscolorspacecorrplotcowplotcpp11crayonDerivdigestdoBydplyrfansifarverFormulafuturegenericsggplot2ggpubrggrepelggsciggsignifglobalsgluegridExtragtablehmsisobandlabelinglatticelifecyclelistenvlme4magrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkminqamodelrmunsellmvtnormnlmenloptrnnetnumDerivparallellypbkrtestpillarpkgconfigpolynomprettyunitsprogresspurrrquantregR6randomizrRColorBrewerRcppRcppEigenreadrrlangrstatixscalesSparseMstringistringrsurvivaltibbletidyrtidyselecttzdbutf8vctrsviridisLitevroomwithr

Readme and manuals

Help Manual

Help pageTopics
Calculate degrees of freedom (support function)calc_df
Check correlation of test statistics (simulation function)check_cor
Converts model params into DGP params (simulation function)convert_params
Generate base simulated multi-level data (simulation function)gen_base_sim_data
Generates school and district assignments (simulation function)gen_cluster_ids
Generate correlation matrix (simulation function)gen_corr_matrix
Generate simulated multi-level data (simulation function)gen_sim_data
Generate treatment assignment vector (simulation function)gen_T.x
Generate observed outcomes (simulation function)gen_Yobs
Calculates different definitions of power (support function)get_power_results
Return characteristics of a given context/d_m code (support function)parse_d_m
Plot a pumpgridresult object (result function)plot.pumpgridresult
Plot a pumpresult object (result function)plot.pumpresult
Obtain a power curve for a range of sample size or MDES valuespower_curve
Print context (design, model, parameter values) of pumpresult or pumpgridresult (result function)print_context
Provides details about supported package features (core function)pump_info
Estimate the minimum detectable effect size (MDES) (core function)pump_mdes
Run pump_mdes on varying values of parameters (grid function)pump_mdes_grid
Estimate power across definitions (core function)pump_power
Run pump_power on varying values of parameters (grid function)pump_power_grid
Estimate the required sample size (core function)pump_sample
Run pump_sample on varying values of parameters (grid function)pump_sample_grid
Result object for results of grid power calculationsis.pumpgridresult print.pumpgridresult pumpgridresult summary.pumpgridresult
pumpresult object for results of power calculationsas.data.frame.pumpresult design dim.pumpresult d_m is.pumpresult params print.pumpresult pumpresult pump_type search_path summary.pumpresult [.pumpresult [[.pumpresult
Convert power table from wide to long (result function)transpose_power_table
Update a single pump call to a grid call (grid function)update_grid
Update a pump grid call, tweaking some parameters (core function)update.pumpgridresult
Update a pump call, tweaking some parameters (core function)update.pumpresult