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
How to re-arrange my data?Dear Statalists, I'd like to rearrange my data in order to analyze it. Part of my dataset is: Co…
How to replace any variable's value if meeting certain conditionDear Stata users, In the following data, I want to replace variables d2a1 d2a2 d2a3 to missing 'cau…
Why robust command in panel regression?!!Dear I want to know when and why I can use robust command in Stata for panel regression model?! …
Bar chart when one category is extremely frequentThis is a question on data visualization in Stata, but also relevant for other software. I have a da…
Adding fixed effects in esttab using estaddHi all, I've run a few regressions and am trying to add rows indicating the presence of fixed effec…
Subscribe to:
Post Comments (Atom)
0 Response to how to compute marginal effects for a variable with its quadratic term
Post a Comment