Hello,
Since the mlogit is not a panel estimator I want to estimate a cross sectional model but for 10 years, i.e. I will be estimating the model for each year separately.
For each of the outcomes I would like the estimate the probabilities from each model but contain them in one variable.
Can this be done using a loop? I.e. estimate for year 1, use predict to get the probabilities (pr_outcome1 pr_outcome2 pr_outcome3), and then for year 2, and have the probabilities for year two appear under the same variables pr_outcome1 pr_outcome2 pr_outcome3?
my model is mlogit y xi x2 i.x3, base (0)
Thanks.
SAM
Related Posts with Creating a loop for estimating probabilities using mlogit
Survival Analysis at specific time point, ltable vs. sts test logrankI am examining the association between chemotherapy and survival among octogenarians with pancreatic…
Use of mse with arima predict command (Stata MP 16.1)Dear Stata-sticians, I am a little puzzled by Stata's calculation of the Mean Square Error when usi…
MrprobitHi. I am trying to use HAS Probit using MRPROBIT command (https://ideas.repec.org/c/boc/bocode/s4576…
Effect on aggregate supply with a DiD regression for firm supply, AWEIGHTING by firm size?Dear all, I ran some DiD regressions to estimate the effect of a policy on the level of good supply…
Creating dummy variableDear, I have a question regarding creating dummy variables. With the data below as an example, I wa…
Subscribe to:
Post Comments (Atom)
0 Response to Creating a loop for estimating probabilities using mlogit
Post a Comment