search for: 4x21

Displaying 1 result from an estimated 1 matches for "4x21".

Did you mean: 0x21
2006 Nov 02
2
simulation with "rpois"
Hi there, I need some helpo with one simulation. I have a matrix of 4x21 I want ro generate 100 random Chi2 distribution but inly from the first row of my matrix. This is what I try: Option (a): >lambda=1:100 >f=function(x)chisq(4,0,x) >lapply(lambda,f) It doesn't work! option(b): >m=mean(matrix[1,]) >x<-rpois(100,lambda=m) Works, but only g...