I am trying to attempt an interval validation with the R
package rms
. In doing this comnand:
fit.glm<-glm(y.0 ~ x1 + rcs(x2, 3) + rcs(x4, 3) + log(x5) + x7 + x9 + rcs(x2,3):log(x5) + rcs(x2, 3):x7 + rcs(x4, 3)*log(x5), x = TRUE, y = TRUE)
summary(fit.glm)
summary(fitted(fit.glm))
The later command gives me
> summary(fitted(fit.glm))
Min. 1st Qu. Median Mean 3rd Qu. Max.
-0.27450 0.02072 0.04557 0.07351 0.08772 1.00600
Why is it a negative value..., can it be an R
bug, or I am missing something...?