Displaying 2 results from an estimated 2 matches for "mi01".
Did you mean:
mb01
2007 Feb 09
1
subset function
Hello R-Users,
I have the following problem with the subset function:
See the following simple linear model. Here everything works fine:
>germany<-lm(RENT~AGE1, in.mi01)
However, if a use the same regression equation and only specify a subset, I
get an error message:
> berlin<-lm(RENT~AGE1, in.mi01, subset=C_X01=="Berlin")
Error in lm.fit(x, y, offset = offset, singular.ok = singular.ok, ...) :
0 (non-NA) cases
The datase...
2007 Feb 09
2
LM Model
Dear R-Users,
How can I put a pre-defined regression model into to an object of class lm
in order to use the predict.lm function.
A simplified example:
I would normally run a regression analysis on a dataset,
> germany<-lm(RENT~AGE1, in.mi01)
> summary(germany)
Call:
lm(formula = RENT ~ AGE1, data = in.mi01)
Residuals:
Min 1Q Median 3Q Max
-12.193 -3.646 -1.009 2.101 49.025
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 13.283639 0.063020 210.78 <...