Skip to content
Prev 76204 / 398502 Next

Matrix oriented computing

On Fri, 2005-08-26 at 14:44 +0200, Sigbert Klinke wrote:
See ?sapply

x <- c(0.005, 0.010, 0.025, 0.05, 0.1, 0.5, 0.9, 
       0.95, 0.975, 0.99, 0.995)

df <- c(1:100)

mat <- sapply(x, qchisq, df)
[1] 100  11
num [1:100, 1:11] 3.93e-05 1.00e-02 7.17e-02 2.07e-01 4.12e-01 ...


HTH,

Marc Schwartz