Dear Stata Users,
I have a question on the margins command.
I have the following (truncated) output from the regression specified below.
I put an interaction term that interests me.
The interaction term (in bold) appears to be statistically significant.
. svy: logit event1 i.tercile2##i.sex i.wave5 i.livingpar i.ukborn i.sex i.educ2 if marital==1&age>17&
> age<36&evunion==2&jbstat!=7&ivfioall==1, level(90)
(running logit on estimation sample)
Survey: Logistic regression
Number of strata = 1,533 Number of obs = 27,624
Number of PSUs = 4,751 Population size = 28,042.993
Design df = 3,218
F( 11, 3208) = 21.47
Prob > F = 0.0000
Linearized
event1 Coef. Std. Err. t P>t [90% Conf. Interval]
1.tercile2 .7687752 .1038346 7.40 0.000 .5979332 .9396171
sex
Female .6165134 .122423 5.04 0.000 .4150874 .8179394
tercile2#sex
1#Female -.3718655 .1352367 -2.75 0.006 -.5943741 -.1493568
- When I run margins in this way, the interaction term is not significant anymore.
margins r.tercile#r.sex, level(90) post atmeans
outreg2 using margisex, word replace eform level(90) label
------------------------------------------------
| df F P>F
-------------+----------------------------------
tercile2#sex | 1 2.06 0.1511
Design | 3218
------------------------------------------------
Note: F statistics are adjusted for the survey
design.
----------------------------------------------------------------------------
| Delta-method
| Contrast Std. Err. [90% Conf. Interval]
---------------------------+------------------------------------------------
tercile2#sex |
(1 vs 0) (Female vs Male) | -.0145494 .0101309 -.031218 .0021192
----------------------------------------------------------------------------
Thus, I am asking myself whether this is the right way to get the marginal effect of an interaction term.
Could you please confirm me if this is the case ?
Thank you.
Best,
Lydia
Related Posts with Problems with term of interaction and margins command
generate a variable with value equal to the one of a particular groupDear All, I have this dataset: Code: * Example generated by -dataex-. To install: ssc install datae…
How I can add 95% CI error bar to my multiple line graphHi, First, I have used the collapse command to make the mean and standard deviation by age and SES …
randomselectHello, I am trying to randomly select a subsample of participants from my data set. I found the com…
Errror in process stringHi all, I have an issues in processing string. I have a data set that includes some regions and a r…
Panel data: building sums correcting for focal panel ID characteristicsHello, I am trying to calculate sumi(xi*zj) where xi = a dummy zj = a dummy xi is connected to in f…
Subscribe to:
Post Comments (Atom)
0 Response to Problems with term of interaction and margins command
Post a Comment