Hi stata experts,
I'm having a problem with the computation of the composite marginal effects of a variable with its quadratic term after mlogit
Let's say the dept. variable is categorical with four options (0,1,2,3)
I have Age and Age2 in the model and need to compute only 1 composite marginal effect of Age instead of two for Age and Age2 for each outcome (0,1,2,3) like the below figure.
How do I accomplish that post estimation. The command mfx2 yields useful marginal effects of both Age and Age2 for each outcome but I want to compute the composite marginal effect of Age only (just 1). How do I do that?
The below command works just fine to estimate the model
mlogit loantype age age2 gender edu farmexp logincome logfarmsize..., base (0) vce(robust)
The result after mfx2 shows
Array
Related Posts with how to compute marginal effects for a variable with its quadratic term
No constant in first difference regressionI am running a first difference regression. I have seen the nocons option included on several posts …
Extracting multiple years mentioned in a stringHi, I am trying to identify the date when a drug reached Phase III in the clinical trial process. M…
Identifying "Episodes"Hello All, I am doing a difference-in-difference analysis. I need to create an identifier, or a var…
keep banks (id) with 3-consecutive years of observation or more in my panel dataGreetings statalist users, I need help with codes to eliminate the entire id (along with all its ob…
Resolving problem with day gaps in STATAI am a new STATA user and new to this forum. I am working with daily price data of the Australian do…
Subscribe to:
Post Comments (Atom)
0 Response to how to compute marginal effects for a variable with its quadratic term
Post a Comment