[R] confidence interval in "predict.lm"

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Fri Nov 15 20:20:57 CET 2002


Matej Cepl <matej at ceplovi.cz> writes:

> Thomas Lumley wrote:
> > You asked R for a confidence interval for the predicted mean at x.  If you
> > want a prediction interval at x you need  interval="prediction" not
> > interval="confidence".
> 
> Slightly OT question to this thread:
> 
> How can I get critical values for given distribution density?
> E.g. function f which would give me 2.228 for ft(p=0.05,df=10)
> (i.e., t for student distribution with given level probability).

> qt(p=0.975,df=10)
[1] 2.228139


-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list