Skip to content
Back to formatted view

Raw Message

Message-ID: <x2hei9vbhd.fsf@biostat.ku.dk>
Date: 2002-08-05T10:36:14Z
From: Peter Dalgaard
Subject: How to get p-values
In-Reply-To: <200208051221.41646.mditzen@zedat.fu-berlin.de>

Mathias Ditzen <mditzen at zedat.fu-berlin.de> writes:

> Hello all there,
> I want to reimplement (for my personal, still very limited understanding of 
> statistics) the linear regression. Now how do I get the correct values for F 
> and T distributions (something like F.05[1,2], where 1 and 2 are degrees of 
> freedom)? I tried dt and df, but the values I got were not correct. 
> Thank you very much in advance,
> Mathias Ditzen

Functions to give p values all start with p: pf and pt. Be careful to
note that they give the lower tail of the respective distributions. To
get an upper tail, subtract from 1 (or use lower.tail=FALSE). To get
two-tailed tests add both tails together (which is often the same as
multiplying by two).

-- 
   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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._