Hi all, and thanks in advance for any responses.
I'm estimating the following model: mlogit enroll_method ses_index2 i.race2 physical2 emotion2 i.enroll_site enroll_age i.period, vce(robust), where enroll_method is one of six contraceptive methods selected at enrollment in a study and ses_index2 is a composite index with continuous values.
For each enroll_method, I have run the margins command to get the predicted probability at the 10th and 90th percentile values of the ses_index2:
margins, at(ses_index2=(1 6)) predict(outcome(2))
For this example I get the following results:
Predictive margins Number of obs = 12,316
Model VCE : Robust
Expression : Pr(enroll_method==2), predict(outcome(2))
1._at : ses_index2 = 1
2._at : ses_index2 = 6
------------------------------------------------------------------------------
| Delta-method
| Margin Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
_at |
1 | .1607696 .004946 32.50 0.000 .1510756 .1704636
2 | .114489 .0061308 18.67 0.000 .102473 .1265051
------------------------------------------------------------------------------
I now want to test whether .1607696 is significantly different than .114489, but am having trouble finding sufficient documentation to do this on (1) a continuous independent variable and (2) for different values of the same independent variable.
Any and all advice would be deeply appreciated!
Best,
Kelsey
Related Posts with Testing for difference in marginal effects at two values of same continuous independent variable
Table 1 help or test for significant differenceHello I have a data set in which I am trying to compare longitudinal data from successive pregnancie…
How to do calcuations between different datatypes (double, long, float)?Hello. I try to create some new ID-variables. Actually my datatype for pid/hid is "long". With MWE i…
Multiple imputation for correlated exposure variablesHello. I am trying to perform multiple imputation in my dataset using mi impute chained. The dataset…
Panel Data Analysis (Run desired regression)Dear Specialist First Thanks for your reading. I have a Panel Data set. I treated Region as id var…
Unicode analyze error - too big fileHi Guys! I am new in Stata and I have a problem with analyzing and translating dta file encodings by…
Subscribe to:
Post Comments (Atom)
0 Response to Testing for difference in marginal effects at two values of same continuous independent variable
Post a Comment