Skip to content
Prev 22382 / 398502 Next

How to get p-values

Mathias Ditzen <mditzen at zedat.fu-berlin.de> writes:
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).