Hi Listers,
I want to make sure I am correctly interpreting my 2*3 interaction following a logistic regression. My predictors are sex (m vs. f) and task type (easy vs. medium vs. high) on completion rates (yes/no).
I find including the interaction term in my model does improve the fit using a likelihood ratio test so I would like to know what is going on. Male and easy are the reference in my anlalysis category as coded as 0. logistic pass i.sex##i..task
To compare females (to males) for each test type, I use the following:
logistic pass i.sex#i..task i.task
which a colleague pointed out is equivalent to:
lincom 1.sex_n+1.sex#0.task
lincom 1.sex_n+1.sex#1.task
lincom 1.sex_n+1.sex#2.task
Is this correct?
I am unsure why, in the lincom statement, only sex and the interaction term are included but not task - any explanation would be much appreciated.
Thanks,
Laura
Related Posts with 2x3 categorical interaction
How to do many similar loopsHi, Stata experts, I have need to repeat the same foreach loop for different variables but with the…
New Variable for Average Value of First Half of ObservationsGood morning, I would like to generate a newvar that returns the average of the 'rating' variable, …
KMATCH Matching Diagnostics Tests AvailabilityI started to work with the KMATCH command for propensity score matching and I am a bit struggling wi…
insufficient observations r(2001);hello every one. I am using on cross-section data . but when I run regression I receive this error: …
Replacing missing variables in a data set with duplicate data by rowI am struggling to replace missing data with a particular value in my dataset which has multiple dup…
Subscribe to:
Post Comments (Atom)
0 Response to 2x3 categorical interaction
Post a Comment