Recently Published
Sample Size Estimation for Logistic Regression with Ordinal Predictor
This script demonstrates how to estimate the required sample size for a logistic regression model where the predictor is an ordinal factor. The steps include:
- Step 1. Simulating an ordinal predictor
- Step 2. Dummy coding the predictor
- Step 3. Estimating adjusted R-squared
- Step 4. Defining predictor distribution
- Step 5. Calculating sample size
Practical Power Analysis in R
The original tutorial was published on CRAN and can be accessed at: https://cran.rstudio.com/web/packages/pwrss/vignettes/examples.html