How can I calculate 95% confidence intervals for standardized beta coefficients in R?
So far, I have used confint() but that is giving me 95% CI for unstandardized regression coefficient for a linear model: lm()
Example below:
h1a <- lm(formula = var1~ var2, data = df) # estimate value of intercept (b0) and slope (b1) and store model in variable
summary(h1a) # extract p-value for year and adjusted R^2 for model
standardCoefs(h1a) # extract standardized beta coefficient
ci_h1a <- confint(h1a, conf.level = 0.95, digits = 4)[2,] # extract confidence interval