Other packages > Find by keyword >

odr  

Optimal Design and Statistical Power for Experimental Studies Investigating Main, Mediation, and Moderation Effects
View on CRAN: Click here


Download and install odr package within the R console
Install from CRAN:
install.packages("odr")

Install from Github:
library("remotes")
install_github("cran/odr")

Install by package version:
library("remotes")
install_version("odr", "1.8.3")



Attach the package and use:
library("odr")
Maintained by
Zuchao Shen
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2017-09-17
Latest Update: 2025-05-29
Description:
Calculate the optimal sample size allocation that produces the highest statistical power for experimental studies under a budget constraint, and perform power analyses with and without accommodating cost structures of sampling. 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. . (4) Champely, S. (2020). pwr: Basic functions for power analysis (Version 1.3-0) [Software]. Available from .
How to cite:
Zuchao Shen (2017). odr: Optimal Design and Statistical Power for Experimental Studies Investigating Main, Mediation, and Moderation Effects. R package version 1.8.3, https://cran.r-project.org/web/packages/odr. Accessed 26 Oct. 2026.
Previous versions and publish date:
(2026-07-09 06:37), 0.3.2 (2017-09-17 14:44), 0.7.3 (2018-01-03 16:55), 1.0.0 (2018-10-03 23:50), 1.0.2 (2020-03-13 12:30), 1.2.1 (2021-09-16 09:30), 1.3.1 (2022-04-30 00:50), 1.4.1 (2023-04-02 15:50), 1.4.2 (2023-04-24 20:00), 1.4.4 (2023-08-08 16:30), 1.5.0 (2025-05-29 21:30), 1.6.3 (2025-08-20 22:20), 1.7.3 (2025-10-31 18:00)
Other packages that cited odr R package
View odr citation profile
Other R packages that odr depends, imports, suggests or enhances
Complete documentation for odr
Functions, R codes and Examples using the odr R package
Some associated functions: gen.design.pars . od.1.111 . od.1 . od.2.221 . od.2 . od.2m.111 . od.2m . od.3 . od.3m . od.4 . od.4m . odr-package . power.1.111 . power.1 . power.2.221 . power.2 . power.2m.111 . power.2m . power.3 . power.3m . power.4 . power.4m . re . rpe . 
Some associated R codes: gen.design.pars.R . od.1.111.R . od.1.R . od.2.221.R . od.2.R . od.2m.111.R . od.2m.R . od.3.R . od.3m.R . od.4.R . od.4m.R . odr.R . power.1.111.R . power.1.R . power.2.221.R . power.2.R . power.2m.111.R . power.2m.R . power.3.R . power.3m.R . power.4.R . power.4m.R . re.R . rpe.R .  Full odr package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

nextGenShinyApps  
Craft Exceptional 'R Shiny' Applications and Dashboards with Novel Responsive Tools
Nove responsive tools for designing and developing 'Shiny' dashboards and applications. The scripts ...
Download / Learn more Package Citations See dependency  
MARSS  
Multivariate Autoregressive State-Space Modeling
The MARSS package provides maximum-likelihood parameter estimation for constrained and unconstraine ...
Download / Learn more Package Citations See dependency  
LSDsensitivity  
Sensitivity Analysis Tools for 'LSD' Simulations
Tools for sensitivity analysis of LSD simulation models. Reads object-oriented data produced by LSD ...
Download / Learn more Package Citations See dependency  
SADEG  
Stability Analysis in Differentially Expressed Genes
We analyzed the nucleotide composition of genes with a special emphasis on stability of DNA sequence ...
Download / Learn more Package Citations See dependency  
rts2  
Log-Gaussian Cox Process Models with Approximations
Supports modelling real-time case data to facilitate the real-time surveillance of infectious disea ...
Download / Learn more Package Citations See dependency  

29,218

R Packages

247,686

Dependencies

77,281

Author Associations

29,219

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA