From: agent dunham <crosspide_at_hotmail.com>

Date: Wed, 23 Mar 2011 09:04:39 -0700 (PDT)

Date: Wed, 23 Mar 2011 09:04:39 -0700 (PDT)

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 toget the fit column of plms? )

Thanks in advance, user_at_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_at_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.Received on Wed 23 Mar 2011 - 18:37:36 GMT

Archive maintained by Robert King, hosted by
the discipline of
statistics at the
University of Newcastle,
Australia.

Archive generated by hypermail 2.2.0, at Wed 23 Mar 2011 - 19:20:23 GMT.

*
Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help.
Please read the posting
guide before posting to the list.
*