RPubs will retire in June 2027. Your existing documents will stay accessible through December 31, 2031
and Connect Cloud is the recommended home for new publishing. Read the blog post
gravatar

metinbulus

Metin Bulus

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