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.7.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.7.3, https://cran.r-project.org/web/packages/odr. Accessed 25 Aug. 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

connectwidgets  
Organize and Curate Your Content Within 'Posit Connect'
A collection of helper functions and 'htmlwidgets' to help publishers curate content collections on ...
Download / Learn more Package Citations See dependency  
hwep  
Hardy-Weinberg Equilibrium in Polyploids
Inference concerning equilibrium and random mating in autopolyploids. Methods are available to test ...
Download / Learn more Package Citations See dependency  
missDiag  
Comparing Observed and Imputed Values under MAR and MCAR
Implements the computation of discrepancy statistics summarizing differences between the density of ...
Download / Learn more Package Citations See dependency  
commonsMath  
JAR Files of the Apache Commons Mathematics Library
'Java' JAR files for the Apache Commons Mathematics Library for use by users and other packages. ...
Download / Learn more Package Citations See dependency  
r2resize  
In-Text Resize for Images, Tables and Fancy Resize Containers in 'shiny', 'rmarkdown' and 'quarto' Documents
Automatic resizing toolbar for containers, images and tables. Various resizable or expandable contai ...
Download / Learn more Package Citations See dependency  

28,332

R Packages

239,283

Dependencies

75,113

Author Associations

28,333

Publication Badges

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