-
Asked via email, but I'm replying here since others might have the same question:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The airquality$Heat <- cut(airquality$Temp, 3, labels=c("Cool", "Mild", "Hot"))
fit <- lm(Ozone ~ Solar.R + Wind * Heat, data=airquality)
quantile(airquality$Wind, probs = c(.1, .5, .9))
#> 10% 50% 90%
#> 5.82 9.70 14.90
quantile(model.frame(fit)$Wind, probs = c(.1, .5, .9))
#> 10% 50% 90%
#> 5.7 9.7 14.9 |
Beta Was this translation helpful? Give feedback.
The
airquality
data set has some missing data, whichlm()
throws out before fitting the model. The quantiles are calculated on the data that was actually used to fit the model: