consumption | R Documentation |
Example from pp 149-154 of Belsley (1991), Conditioning Diagnostics
A data frame with 28 observations on the following 5 variables.
1947 to 1974
total consumption, 1958 dollars
the interest rate (Moody's Aaa)
disposable income, 1958 dollars
annual change in disposable income
Belsley, D.A. (1991). Conditioning diagnostics, collinearity and weak data in regression. New York: John Wiley & Sons.
data(consumption)
ct1 <- with(consumption, c(NA,cons[-length(cons)]))
# compare (5.3)
m1 <- lm(cons ~ ct1 + dpi + rate + d_dpi, data = consumption)
anova(m1)
# compare exhibit 5.11
with(consumption, cor(cbind(ct1, dpi, rate, d_dpi), use="complete.obs"))
# compare exhibit 5.12
cd<-colldiag(m1)
cd
print(cd,fuzz=.3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.