>> 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
>
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
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
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
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
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
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 ()
> {
>
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 ()
> {
>
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
9 matches
Mail list logo