Skip to content
Prev 76207 / 398502 Next

Matrix oriented computing

I believe that the following is what you want:

x <- c(0.005, 0.010, 0.025, 0.05, 0.1, 0.5, 0.9, 0.95, 0.975, 0.99, 0.995)
dof <- 1:100
ans <- outer(x, dof, qchisq)
dimnames(ans) <- list(x, dof)


Note that 'df' is not a very auspicious name for an object since
it is the name of a function. 

Patrick Burns
patrick at burns-stat.com
+44 (0)20 8525 0696
http://www.burns-stat.com
(home of S Poetry and "A Guide for the Unwilling S User")
Sigbert Klinke wrote: