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
Sorting issue when sort is expanded by a variableHello, I have an issue running the following command Code: sort id _mi_m survey expectation gift…
Replace a value of multiple observations for one variableDear all, I have a variable name "village", and wanted to replace the name of village in observation…
lowess with confidence intervalsDear Stata users, I am wondering is it possible to graph the lowess smoothing function with confide…
Making loops to create 2 groups of variablesHello all, I have data that is set out with columns divided into Sex; then Labour Force Status (8 c…
How to compare statistical difference between coefficients of two regressionsDear Stata Users, Please, help me with the following. How do I compare statistical difference betw…
Subscribe to:
Post Comments (Atom)
0 Response to how to compute marginal effects for a variable with its quadratic term
Post a Comment