I'm trying to run the following model:
fracpoly: regress logfrailty age50
fracgen age50 2 2, replace
recast float age50_1, force
recast float age50_2, force
runmlwin log_frailty cons age50_1 age50_2 female , ///
level1(swave: cons age50_1 age50_2, reset(none)) ///
level2(id: cons age50_1 age50_2, reset(none) residuals(id_res) ) ///
level3(hhcluster:cons, reset(none) ) ///
level4(country:cons, reset(none) ) ///
nopause maxiterations(100)
My sample size is 98,521. I am getting the following error message:
cannot allocate smatrix(fs)
When I click 'OK' I get:
error while obeying the batch file
C:\Users\epela\AppData\Local\Temp\ST_00000008.tmp at line number 62: STAR
cannot allocate smatrix(fs)
I found this previous thread:
https://www.cmm.bristol.ac.uk/forum/viewtopic.php?t=562
Tried replacing the runmlwin.ado file text from:
file write `macro1' "OPTS 0" _n
to
file write `macro1' "OPTS 1" _n
This didn't work. I also tried adding "mlwinsettings(size(536000) levels(5) columns(1500) variables(300) tempmat)" and played with those to no avail.
Any idea what the problem might be?
Thanks

Emma