Can runmlwin handle CAR models at two levels?
Posted: Fri May 18, 2018 7:51 pm
Dear runmlwin community,
I am trying to fit a spatiotemporal model using with the following code
runmlwin outcome cons year covariate1, ///
level3(POLY_ID: year cons, carids(mmid1-mmid10) carweights(carweight1-carweight10)) ///
level2(POLY_ID: cons) ///
level1(POLY_ID: ) ///
discrete(distribution(poisson) link(log) offset(logexp)) ///
mcmc( burnin (10000) chain(50000) refresh(500)) initsprevious nopause irr
* I am trying to replicate code from CARBayes (to fit a Spatiotemporal model), which assigns a CAR component both to space (POLY_ID) and the year (year). I am successful fitting the CAR component to space by removing the year variable from level 3.
However, when I try to fit the CAR component to year as well, I get the error that "only constant terms may be random at the CAR classification"
Question: Can this be fit in runmlwin? or is the program not yet capable of fitting CAR to two levels? or is there some way to manipulate the code to accommodate both?
I attached a word document with the statistical model and description of what I am trying to replicate (S1).
Thank you in advance for reviewing and any feedback you may have,
I am trying to fit a spatiotemporal model using with the following code
runmlwin outcome cons year covariate1, ///
level3(POLY_ID: year cons, carids(mmid1-mmid10) carweights(carweight1-carweight10)) ///
level2(POLY_ID: cons) ///
level1(POLY_ID: ) ///
discrete(distribution(poisson) link(log) offset(logexp)) ///
mcmc( burnin (10000) chain(50000) refresh(500)) initsprevious nopause irr
* I am trying to replicate code from CARBayes (to fit a Spatiotemporal model), which assigns a CAR component both to space (POLY_ID) and the year (year). I am successful fitting the CAR component to space by removing the year variable from level 3.
However, when I try to fit the CAR component to year as well, I get the error that "only constant terms may be random at the CAR classification"
Question: Can this be fit in runmlwin? or is the program not yet capable of fitting CAR to two levels? or is there some way to manipulate the code to accommodate both?
I attached a word document with the statistical model and description of what I am trying to replicate (S1).
Thank you in advance for reviewing and any feedback you may have,