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
eventstudy2: why my command neglects results of Mondays?Hello everyone I am using the powerful command, eventstudy2 (Thomas Kaspereit, 2020) for a global e…
Revenue Growth TrendHi everyone, I have 15 years (2005-2019) of 548 municipalities general revenue data. I'm trying to g…
Loop for collapse + save fileI'm trying to write a loop where I have reporter and partner countries and country groupings as sepa…
Fixed or Random Effect Model in Cross -Sectional dataDear All, I have a query regarding the fixed or random effect model in cross-sectional data (One ob…
Looping over many variables to create new variable "if any" ==0Dear Statalist: I am struggling with something that I know should be easy. My data is in long form, …
Subscribe to:
Post Comments (Atom)
0 Response to Creating a loop for estimating probabilities using mlogit
Post a Comment