What happens when I call rchisq(100,1:100,1:100)
:
- does R generate 100 numbers with df=1,ncp=1?
- or does it generate 100 numbers each with df=k,ncp=k for k=1...100?
What I want to know is whether df and ncp can be vectors or not. It is not clear in the documentation (when compared with rnorm). I suspect that they can also be vectors and recycling happens if the lengths differ(?)