Package: odr Type: Package Title: Optimal Design and Statistical Power for Experimental Studies Investigating Main, Mediation, and Moderation Effects Version: 1.8.3 Date: 2026-2-11 Authors@R: c(person(given = "Zuchao", family = "Shen", email = "zuchao.shen@gmail.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-3483-0451")), person(given = "Benjamin", family = "Kelcey", role = "aut")) Description: Calculate the optimal sample size allocation that uses the minimum resources to achieve targeted statistical power in experiments. Perform power analyses with and without accommodating costs and budget. The designs cover single-level and multilevel experiments detecting main, mediation, and moderation effects (and some combinations). The references for the proposed methods include: (1) Shen, Z., & Kelcey, B. (2020). Optimal sample allocation under unequal costs in cluster-randomized trials. Journal of Educational and Behavioral Statistics, 45(4): 446-474. . (2) Shen, Z., & Kelcey, B. (2022b). Optimal sample allocation for three-level multisite cluster-randomized trials. Journal of Research on Educational Effectiveness, 15 (1), 130-150. . (3) Shen, Z., & Kelcey, B. (2022a). Optimal sample allocation in multisite randomized trials. The Journal of Experimental Education, 90(3), 693-711. . (4) Shen, Z., Leite, W., Zhang, H., Quan, J., & Kuang, H. (2025). Using ant colony optimization to identify optimal sample allocations in cluster-randomized trials. The Journal of Experimental Education, 93(1), 167-185. . (5) Shen, Z., Li, W., & Leite, W. (in press). Statistical power and optimal design for randomized controlled trials investigating mediation effects. Psychological Methods. . (6) Champely, S. (2020). pwr: Basic functions for power analysis (Version 1.3-0) [Software]. Available from . Language: en-US Depends: R (>= 3.3.0), stats (>= 3.0.0), graphics (>= 3.0.0), base(>= 3.0.0) License: GPL-3 Encoding: UTF-8 RoxygenNote: 7.3.3 Suggests: rmarkdown, knitr, markdown VignetteBuilder: rmarkdown, knitr, markdown Repository: https://zuchaoshen.r-universe.dev Date/Publication: 2026-02-11 15:54:25 UTC RemoteUrl: https://github.com/zuchaoshen/odr RemoteRef: HEAD RemoteSha: 199820882cfef85e879f0a6e3df1e198d4f71b81 NeedsCompilation: no Packaged: 2026-10-09 08:35:03 UTC; root Author: Zuchao Shen [aut, cre] (ORCID: ), Benjamin Kelcey [aut] Maintainer: Zuchao Shen