I'm trying to draw samples from Gamma distribution but I'm considering the 'scale' argument of rgamma
as a vector because each sample unit has different scale parameters. I'd like to know what is the rule of this function to choose the values of the argument. For example, if I run this:
rgamma(10,shape=1,scale=1:10)
Is it generating rgamma(1,shape=1, scale=10)
,$\ldots$,rgamma(1,shape=1, scale=10)
? Besides that, what if I run this:
rgamma(1,shape=1,scale=1:10)
rgamma(2,shape=1,scale=1:10)
rgamma(11,shape=1,scale=1:3)
Which scale parameter is it choosing for each draw? Could someone help me? Thanks