Package: GreedyExperimentalDesign 1.5.6.1
Adam Kapelner
GreedyExperimentalDesign: Greedy Experimental Design Construction
Computes experimental designs for a two-arm experiment with covariates via a number of methods: (0) complete randomization and randomization with forced-balance, (1) Greedily optimizing a balance objective function via pairwise switching. This optimization provides lower variance for the treatment effect estimator (and higher power) while preserving a design that is close to complete randomization. We return all iterations of the designs for use in a permutation test, (2) The second is via numerical optimization (via 'gurobi' which must be installed, see <https://www.gurobi.com/documentation/9.1/quickstart_windows/r_ins_the_r_package.html>) a la Bertsimas and Kallus, (3) rerandomization, (4) Karp's method for one covariate, (5) exhaustive enumeration to find the optimal solution (only for small sample sizes), (6) Binary pair matching using the 'nbpMatching' library, (7) Binary pair matching plus design number (1) to further optimize balance, (8) Binary pair matching plus design number (3) to further optimize balance, (9) Hadamard designs, (10) Simultaneous Multiple Kernels. In (1-9) we allow for three objective functions: Mahalanobis distance, Sum of absolute differences standardized and Kernel distances via the 'kernlab' library. This package is the result of a stream of research that can be found in Krieger, A, Azriel, D and Kapelner, A "Nearly Random Designs with Greatly Improved Balance" (2016) <arxiv:1612.02315>, Krieger, A, Azriel, D and Kapelner, A "Better Experimental Design by Hybridizing Binary Matching with Imbalance Optimization" (2021) <arxiv:2012.03330>.
Authors:
GreedyExperimentalDesign_1.5.6.1.tar.gz
GreedyExperimentalDesign_1.5.6.1.zip(r-4.5)GreedyExperimentalDesign_1.5.6.1.zip(r-4.4)GreedyExperimentalDesign_1.5.6.1.zip(r-4.3)
GreedyExperimentalDesign_1.5.6.1.tgz(r-4.4-x86_64)GreedyExperimentalDesign_1.5.6.1.tgz(r-4.4-arm64)GreedyExperimentalDesign_1.5.6.1.tgz(r-4.3-x86_64)GreedyExperimentalDesign_1.5.6.1.tgz(r-4.3-arm64)
GreedyExperimentalDesign_1.5.6.1.tar.gz(r-4.5-noble)GreedyExperimentalDesign_1.5.6.1.tar.gz(r-4.4-noble)
GreedyExperimentalDesign_1.5.6.1.tgz(r-4.4-emscripten)GreedyExperimentalDesign_1.5.6.1.tgz(r-4.3-emscripten)
GreedyExperimentalDesign.pdf |GreedyExperimentalDesign.html✨
GreedyExperimentalDesign/json (API)
# Install 'GreedyExperimentalDesign' in R: |
install.packages('GreedyExperimentalDesign', repos = c('https://kapelner.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/kapelner/greedyexperimentaldesign/issues
Last updated 1 years agofrom:565db6345e. Checks:OK: 1 WARNING: 8. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 23 2024 |
R-4.5-win-x86_64 | WARNING | Nov 23 2024 |
R-4.5-linux-x86_64 | WARNING | Nov 23 2024 |
R-4.4-win-x86_64 | WARNING | Nov 23 2024 |
R-4.4-mac-x86_64 | WARNING | Nov 23 2024 |
R-4.4-mac-aarch64 | WARNING | Nov 23 2024 |
R-4.3-win-x86_64 | WARNING | Nov 23 2024 |
R-4.3-mac-x86_64 | WARNING | Nov 23 2024 |
R-4.3-mac-aarch64 | WARNING | Nov 23 2024 |
Exports:complete_randomizationcomplete_randomization_with_forced_balancedcompute_gram_matrixcompute_objective_valcompute_randomization_metricscomputeBinaryMatchStructuregenerate_stdzied_design_matrixgreedy_orthogonalization_curationgreedy_orthogonalization_curation2hadamardExperimentalDesignimbalanced_block_designsimbalanced_complete_randomizationinitBinaryMatchExperimentalDesignSearchinitBinaryMatchFollowedByGreedyExperimentalDesignSearchinitBinaryMatchFollowedByRerandomizationDesignSearchinitGreedyExperimentalDesignObjectinitGreedyMultipleKernelExperimentalDesignObjectinitKarpExperimentalDesignObjectinitOptimalExperimentalDesignObjectinitRerandomizationExperimentalDesignObjectoptimize_asymmetric_treatment_assignmentplot_obj_val_by_iterplot_obj_val_order_statisticresultsBinaryMatchSearchresultsBinaryMatchThenGreedySearchresultsBinaryMatchThenRerandomizationSearchresultsGreedySearchresultsKarpSearchresultsMultipleKernelGreedySearchresultsOptimalSearchresultsRerandomizationSearchsearchTimeElapsedstandardize_data_matrixstartSearchstopSearch
Dependencies:backportsbase64encbslibcachemcheckmatecliclustercolorspacedata.tableDBIdigestevaluatefansifarverfastmapfontawesomeforeignFormulafsggplot2gluegridExtragtablehighrHmischtmlTablehtmltoolshtmlwidgetsisobandjquerylibjsonlitekernlabknitrlabelinglatticelifecyclemagrittrMASSMatrixmemoisemgcvmimeminqamitoolsmunsellnbpMatchingnlmennetnumDerivpillarpkgconfigR6rappdirsRColorBrewerRcppRcppArmadillorJavarlangrlistrmarkdownrpartrstudioapisassscalesstringistringrsurveysurvivaltibbletinytexutf8vctrsviridisviridisLitewithrxfunXMLyaml