Hello statalist,
I am trying to get started with StataStan, but am having problems with the installation. In fact, I am unable to make the Bernoulli example work (it works fine if I launch it from terminal on my Mac). The error message I get is as follows:
I have tried to look at the stan.ado file, but have no idea what is going on (stan.ado file attached). The file is installed in the Stata/ado/personal folder in Library (I am working on a Mac).
The code I use is as follows (though I get the same error if I use the other options in the example)
Any hint is much appreciated!
Ferdinand
I am trying to get started with StataStan, but am having problems with the installation. In fact, I am unable to make the Bernoulli example work (it works fine if I launch it from terminal on my Mac). The error message I get is as follows:
Code:
program error: code follows on the same line as open brace (error occurred while loading stan.ado) r(198);
The code I use is as follows (though I get the same error if I use the other options in the example)
Code:
if lower("$S_OS")=="windows" { !copy examples\bernoulli\bernoulli.stan bernoulli.stan } else { !cp ./examples/bernoulli/bernoulli.stan bernoulli.stan } // make your data clear set obs 10 gen y=0 replace y=1 in 2 replace y=1 in 10 count global N=r(N) // call Stan, providing the modelfile option stan y, modelfile("bernoulli.stan") cmd("$cmdstandir") globals("N")
Ferdinand
Comment