Description Usage Arguments Details Value Author(s) Examples
Adaptation of existing methods based on AIC/BIC.
1 2 3 4 |
model |
object class |
alpha |
|
full |
|
force.in |
|
alpha.enter |
|
alpha.remove |
|
hierarchy |
|
F-based versions of built in stepwise methods.
The final linear model after selection is returned.
Kristian Hovde Liland
1 2 3 4 5 6 7 8 |
Attaching package: ‘mixlm’
The following objects are masked from ‘package:stats’:
glm, lm
Forward selection, alpha-to-enter: 0.2
Full model: y ~ x + z
<environment: 0x55edd72c0290>
Step RSS AIC R2pred Cp F value Pr(>F)
z 1 3.9168 -1.7133 -0.27761 1.6044 2.3489 0.1763
Call:
lm(formula = y ~ z, data = data)
Coefficients:
(Intercept) z(a)
0.6047 0.4378
Backward elimination, alpha-to-remove: 0.2
Full model: y ~ x + z
<environment: 0x55edd7655908>
Step RSS AIC R2pred Cp F value Pr(>F)
x 1 3.9168 -1.7133 -0.27761 1.6044 0.6044 0.4721
Call:
lm(formula = y ~ z, data = data)
Coefficients:
(Intercept) z(a)
0.6047 0.4378
Stepwise regression (forward-backward), alpha-to-enter: 0.15, alpha-to-remove: 0.15
Full model: y ~ x + z
<environment: 0x55edd785d848>
[1] "No iterations performed (re-run using extended output for details)"
Call:
lm(formula = y ~ 1, data = data)
Coefficients:
(Intercept)
0.6047
Stepwise regression (backward-forward), alpha-to-remove: 0.15, alpha-to-enter: 0.15
Full model: y ~ x + z
<environment: 0x55edd797a008>
Step InOut RSS AIC R2pred Cp F value Pr(>F)
x 1 -1 3.9168 -1.7133 -0.27761 1.6044 0.6044 0.4721
z 2 -1 5.4502 -1.0703 -0.30612 1.7984 2.3489 0.1763
Call:
lm(formula = y ~ 1, data = data)
Coefficients:
(Intercept)
0.6047
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.