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 interesting to plot? I've gone through another post, and have seen the following: (http://r.789695.n4.nabble.com/help-with-predict-and-plotting-confidence-intervals-td886399.html) plot( seq(0,6, length.out = 24), plmsub[ ,"fit"] ) lines(seq(0,6, length.out = 24), plmsub[ ,"lwr"], lty=2) lines(seq(0,6, length.out = 24), plmsub[ ,"upr"], lty=2) But I don't know what to plot with my multiple linear regression. I also tried plot(plms) but I guess it doesn't have too much sense Maybe test$vd vs plms$fit? (if this was correct, what's the syntax to get the fit column of plms? ) Thanks in advance, u...@host.com -- View this message in context: http://r.789695.n4.nabble.com/what-s-interesting-to-plot-after-predict-lm-tp3399853p3399853.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.