Description Usage Arguments Value Examples
Compute standardized beta coeffizients for linear regression models
1 | betas.lm(MOD)
|
MOD |
A model of class |
A data.frame with two columns
beta | standardized beta coefficients |
se.beta | standard errors for the beta coefficients |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | data <- pisa2012che
## linear regression models with numerical covariates only
fit1 <- lm(MATH ~ ESCS + USEMATH, data)
betas.lm(fit1)
## ...and with interaction terms
fit1.1 <- lm(MATH ~ ESCS * USEMATH, data)
betas.lm(fit1.1)
## linear regression models with numerical and factorial covariates
fit2 <- lm(MATH ~ ESCS + USEMATH + ST04Q01 + FAMSTRUC + ST28Q01, data)
betas.lm(fit2)
## ...and with interaction terms
fit2.1 <- lm(MATH ~ ESCS + USEMATH + ST04Q01 + FAMSTRUC * ST28Q01, data)
betas.lm(fit2.1)
## weighted linear regression models
fit3 <- lm(MATH ~ ESCS + USEMATH, data, weights = W_FSTUWT)
betas.lm(fit3)
fit4 <- lm(MATH ~ ESCS + USEMATH + ST04Q01 + FAMSTRUC + ST28Q01, data, weights = W_FSTUWT)
betas.lm(fit4)
## ...with interaction terms
fit3.1 <- lm(MATH ~ ESCS * USEMATH, data, weights = W_FSTUWT)
betas.lm(fit3.1)
fit4.1 <- lm(MATH ~ ESCS + USEMATH + ST04Q01 + FAMSTRUC * ST28Q01, data, weights = W_FSTUWT)
betas.lm(fit4.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.