Re: [R] rgamma function produces NaN values

2020-03-06 Thread Sanna Soomro
Hi I didn't notice that I haven't cc the R-help so, unknowingly, I replied back to you only. That's understandable and I think I may consult for the wrong type of help. However, I'll remain in the list in case if I get stuck in any simple R problem again. Best regards Sanna 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