Open glennwharrison opened 7 years ago
Thanks for filing this as an issue with statastan. I hope @robertgrant sees it!
@glennwharrison thanks for sending me the log files. It looks like the stan.ado that is being called is an old one (https://github.com/stan-dev/statastan/commit/bfcc0ac226dc87c61444c67d0f45db0ec800c50e). I'm a bit confused about how 1.2.3 is displayed as the StataStan version number but I would suggest doing ssc uninstall stan and then ssc install stan to be sure of getting it tidied up. If you have some personal ado folders it might be worth clearing stan.ado out of there too. Let us know if there's still a problem after that.
I have encountered an issue with running StataStan, and wonder if others have the same issue. I have a workaround, but it seems likely that there is something awry with my install or some way I am calling StataStan.
For some reason the “stan” file is saved in the CmdStan directory, and when StataStan is run it processes that file rather than any new one it is told to process. This generates an issue when one has edited an error in the “stan” file and wants to just re-run it. Albeit tedious, one can automatically erase this file within Stata prior to the call to Stan (forgive the syntax, but I do not know how to make this look like Stata code; asterisks become bullets, for example):
local for file to run local stanfile "eu0"
define the path to CmdStan global cmdstandir "c:\cmdstan-2.16.0"
define the path to here local back `c(pwd)'
tedious: delete the file in the CmdStan directory program cleanup cd $cmdstandir capture: erase
stanfile'.stan cd "
back'" end cleanupStan warmup and iterations (default is 1000 and 1000) local warmup 1000 local iter 5000
call to Stan for EU with no covariates stan choiceR, modelfile(
stanfile'.stan) cmd("$cmdstandir") globals("N" "T" "C" "K") matrices("probL" "probR" "prizeL" "prizeR" "endowment") outputfile(
stanfile') mode load diagnose warmup(warmup') iter(
iter')**This is a bit tedious, but does not add much overhead. Anyone encountered this?