Saving residuals chains
Posted: Thu Jun 06, 2019 9:58 am
dear all,
I am running a cross classified model and I am having troubles saving the MCMC chains for residuals.
I attach here a simplified version of the code I am using:
While it correctly saves the chains for the parameters, it does not save any file (it should be u.dta) with the chains for residuals.
Any idea?
thank you for your patience!
Francesco
I am running a cross classified model and I am having troubles saving the MCMC chains for residuals.
I attach here a simplified version of the code I am using:
Code: Select all
global MLwiN_path "C:\Program Files (x86)\MLwiN v2.35\x64\mlnscript.exe"
gen cons=1
runmlwin attendp cons, ///
level2(cohort: cons) ///
level1(id_individual: cons) ///
nopause forces mlwinsettings(optimat)
runmlwin attendp cons, ///
level2(cohort: cons, residuals(u,savechains("u.dta",replace))) ///
level1(id_individual: cons) ///
mcmc(on cc savechains("chain.dta", replace)) initsprevious nopause forces mlwinsettings(optimat)
Any idea?
thank you for your patience!
Francesco