Re: [R] rgamma function produces NaN values

2020-03-06 Thread Sanna Soomro
>> The packages I am using are mvtnorm, GIGrvg, tmvtnorm, RGeode and >> truncnorm. >> >> >> >> Best regards >> >> Sanna >> >> >> >> *From: *Bert Gunter >> *Date: *Thursday, 5 March 2020 at 15:40 >> *To: *Sanna Soomro >

Re: [R] rgamma function produces NaN values

2020-03-06 Thread Bert Gunter
nter > *Date: *Thursday, 5 March 2020 at 15:40 > *To: *Sanna Soomro > *Subject: *Re: [R] rgamma function produces NaN values > > > > What package are you using? -- this is requested by the posting guide. > > > Bert Gunter > > "The trouble with having an open

Re: [R] rgamma function produces NaN values

2020-03-05 Thread PIKAL Petr
Soomro > Sent: Wednesday, March 4, 2020 4:22 PM > To: r-help@r-project.org > Subject: [R] rgamma function produces NaN values > > Hi, > > In my code, I want to sample from the posterior distribution to get estimates for > each parameter via the Bayesian approach. My model has s

[R] rgamma function produces NaN values

2020-03-05 Thread Sanna Soomro
Hi, In my code, I want to sample from the posterior distribution to get estimates for each parameter via the Bayesian approach. My model has spatial coefficient and lasso penalty. When I run this line gibbs_lasso(y = Y, x= X, W=W.rook, tau = 0.5, M=2) It works, however, when I changed M from 2

Re: [R] rgamma function

2012-07-16 Thread Thomas Lumley
On Mon, Jul 16, 2012 at 12:49 PM, Chandler Zuo wrote: > Sorry that I posted the wrong syntax. My initial program is very long and I > tried to post the section where I have been narrowed to locate the problem. > > In this sample I am simulating a Gamma with size parameter 5000 and scale > paramete

Re: [R] rgamma function

2012-07-16 Thread Chandler Zuo
Sorry that I posted the wrong syntax. My initial program is very long and I tried to post the section where I have been narrowed to locate the problem. In this sample I am simulating a Gamma with size parameter 5000 and scale parameter 1. I plugged in many breaks in my initial program and wh

Re: [R] rgamma function

2012-07-15 Thread Thomas Lumley
On Fri, Jul 13, 2012 at 7:55 PM, Chandler Zuo wrote: > Hi, > > Has anyone encountered the problem of rgamma function in C? The following > simplified program always dies for me, and I wonder if anyone can tell me > the reason. > > #include > #include > #include > > SEXP generateGamma () > { >

Re: [R] rgamma function

2012-07-15 Thread peter dalgaard
On Jul 14, 2012, at 04:55 , Chandler Zuo wrote: > Hi, > > Has anyone encountered the problem of rgamma function in C? The following > simplified program always dies for me, and I wonder if anyone can tell me the > reason. > > #include > #include > #include > > SEXP generateGamma () > { >

[R] rgamma function

2012-07-15 Thread Chandler Zuo
Hi, Has anyone encountered the problem of rgamma function in C? The following simplified program always dies for me, and I wonder if anyone can tell me the reason. #include #include #include SEXP generateGamma () { srand(time(NULL)); return (rgamma(5000,1)); } Has anyone encounte