Package: PUMP 1.0.2

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:Kristin Porter [aut], Luke Miratrix [aut, cre], Kristen Hunter [aut], Zarni Htet [aut], MDRC [cph], Institute of Education Sciences [fnd]

PUMP_1.0.2.tar.gz
PUMP_1.0.2.zip(r-4.5)PUMP_1.0.2.zip(r-4.4)PUMP_1.0.2.zip(r-4.3)
PUMP_1.0.2.tgz(r-4.4-any)PUMP_1.0.2.tgz(r-4.3-any)
PUMP_1.0.2.tar.gz(r-4.5-noble)PUMP_1.0.2.tar.gz(r-4.4-noble)
PUMP_1.0.2.tgz(r-4.4-emscripten)PUMP_1.0.2.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:

29 exports 7 stars 1.75 score 85 dependencies 13 scripts 942 downloads

Last updated 7 months agofrom:86d621e1b8. Checks:OK: 1 WARNING: 6. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 13 2024
R-4.5-winWARNINGSep 13 2024
R-4.5-linuxWARNINGSep 13 2024
R-4.4-winWARNINGSep 13 2024
R-4.4-macWARNINGSep 13 2024
R-4.3-winWARNINGSep 13 2024
R-4.3-macWARNINGSep 13 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:abindbackportsbitbit64bootbroomcarcarDataclicliprcodetoolscolorspacecorrplotcowplotcpp11crayonDerivdigestdoBydplyrfansifarverfuturegenericsggplot2ggpubrggrepelggsciggsignifglobalsgluegridExtragtablehmsisobandlabelinglatticelifecyclelistenvlme4magrittrMASSMatrixMatrixModelsmgcvmicrobenchmarkminqamodelrmunsellmvtnormnlmenloptrnnetnumDerivparallellypbkrtestpillarpkgconfigpolynomprettyunitsprogresspurrrquantregR6randomizrRColorBrewerRcppRcppEigenreadrrlangrstatixscalesSparseMstringistringrsurvivaltibbletidyrtidyselecttzdbutf8vctrsviridisLitevroomwithr

Demo and discussion of the pump_sample method

Rendered frompump_sample_demo.Rmdusingknitr::rmarkdownon Sep 13 2024.

Last update: 2022-09-14
Started: 2021-10-08

Demo of simulating multi-level data

Rendered frompump_simulate.Rmdusingknitr::rmarkdownon Sep 13 2024.

Last update: 2023-04-12
Started: 2021-12-20

Demonstration of the PUMP package

Rendered frompump_demo.Rmdusingknitr::rmarkdownon Sep 13 2024.

Last update: 2023-03-31
Started: 2021-06-16

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
For M=1 situationspump_power_exact
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