To HomePage

Probability Functions in SAS and R

 

Distribution SAS Function R Function
Standard Normal pdf("normal", z) dnorm(z)
  cdf("normal", z) pnorm(z)
  quantile("normal", p) qnorm(p)
  rand("normal") rnorm(1)
t pdf("t", t, df) dt(t, df)
  cdf("t", t, df) pt(t, df)
  quantile("t", p, df) qt(p, df)
  rand("t", df) rt(1, df)
F pdf("f", x, dfnum, dfdenom) df(x, dfnum, dfdenom)
  cdf("f", x, dfnum, dfdenom) pf(x, dfnum, dfdenom)
  quantile("f", p, dfnum, dfdenom) qf(p, dfnum, dfdenom)
  rand("f", df) rf(1, dfnum, dfdenom)