Displaying 2 results from an estimated 2 matches for "plms".
Did you mean:
plm
2011 Mar 23
1
what's interesting to plot after predict.lm?
Dear all,
I've fitted this model with train data
lms <- lm(vd ~ log(v1) + fv2+ fv5+ fv7 )
and predicted over test data using
plms <- predict.lm(lmsub, new=test,interval="predict",
level=0.95,se.fit=TRUE)
I've two questions:
q1: what's the difference between writing interval "predict" or "confidence"
? How are they computed?
Any reference would be appreciated
q2: What's in...
2011 Mar 23
1
predict.lm How to introduce new data?
...n excell.
training <- read.xls("C:/...../training.xls") , the same for test. That is:
v1
v2
...
v15
When I type str(training) and str(test), both sets have the same names
The resulting model is lms <- lm(vd ~ log(v1) + fv2+ fv5+ fv7 ) -fvi means
they were turned into factors-
plms<- predict(lms, new=test ,interval="prediction")
Error at model.frame.default(Terms, newdata, na.action = na.action, xlev =
object$xlevels) :
length of the variables are different (found for 'fv2')
More: Warning messages lost
'newdata' had 10 rows but variable(s) f...