Hello,
I am using Stata BE and encountered the following error while trying to run a control function logit model using cfbinout:
.
cfbinout logit hee i.hh_size_grp i.soc_grp i.relgn i.sctr i.marital i.Quartile i.rel_code i.state (ses_index = jan_suraksha)
J(): 3900 unable to allocate real <tmp>[896518,896518]
r(3900);
I suspect this may be due to memory or matrix size limitations in Stata BE, possibly due to high-cardinality variables like i.state.
Thank you in advance!
I am using Stata BE and encountered the following error while trying to run a control function logit model using cfbinout:
.
cfbinout logit hee i.hh_size_grp i.soc_grp i.relgn i.sctr i.marital i.Quartile i.rel_code i.state (ses_index = jan_suraksha)
J(): 3900 unable to allocate real <tmp>[896518,896518]
r(3900);
I suspect this may be due to memory or matrix size limitations in Stata BE, possibly due to high-cardinality variables like i.state.
- Does cfbinout create large matrices internally that exceed BE's limits?
- Would simplifying the model (e.g., dropping some fixed effects or collapsing categories) help?
- Or is upgrading to Stata SE or MP necessary for this type of model?
Thank you in advance!
Comment