Re: [R] predict problem

About this list Date view Thread view Subject view Author view

From: Alan T. Arnholt (arnholt@math.appstate.edu)
Date: Tue 10 Apr 2001 - 00:14:12 EST


Message-ID: <SIMEON.10104091012.D@WALKER231.math.appstate.edu>


On Mon, 09 Apr 2001 15:43:13 +0200 Troels Ring
<tring@gvdnet.dk> wrote:

> lot <- c(30,20,60,80,40,50,60,30,70,60)
> hours <- c(73,50,128,170,87,108,135,69,148,132)
> z1 <- lm(hours~lot)
> new <- data.frame(x=80)
> predict(z1,new,interval="confidence",level=90)

you will also need to change your level to read .90 versus
90
> predict.lm(z1,newdata=new,interval="confidence",level=.90)
     fit lwr upr
[1,] 170 166.9245 173.0755

Alan
----------------------
Alan T. Arnholt
arnholt@math.appstate.edu

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


About this list Date view Thread view Subject view Author view

This archive was generated by hypermail 2b30 : Fri 22 Jun 2001 - 18:58:38 EST