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 04 Jun. 2026.
Previous versions and publish date:
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

AMPLE  
Shiny Apps to Support Capacity Building on Harvest Control Rules
Three Shiny apps are provided that introduce Harvest Control Rules (HCR) for fisheries management. ...
Download / Learn more Package Citations See dependency  
phers  
Calculate Phenotype Risk Scores
Use phenotype risk scores based on linked clinical and genetic data to study Mendelian disease and ...
Download / Learn more Package Citations See dependency  
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  
crplyr  
A 'dplyr' Interface for Crunch
In order to facilitate analysis of datasets hosted on the Crunch data platform ...
Download / Learn more Package Citations See dependency  
murphydiagram  
Murphy Diagrams for Forecast Comparisons
Data and code for the paper by Ehm, Gneiting, Jordan and Krueger ('Of Quantiles and Expectiles: Con ...
Download / Learn more Package Citations See dependency  
golem  
A Framework for Robust Shiny Applications
An opinionated framework for building a production-ready 'Shiny' application. This package contains ...
Download / Learn more Package Citations See dependency  

27,268

R Packages

233,548

Dependencies

72,590

Author Associations

27,205

Publication Badges

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