Dear all,
I have a question regarding which model and commands I should use for my dataset. My dependent variable is categorical (only takes the values 1 or 2), and so are my two independent variables (also taking the values of 1 or 2). I observed 200 individuals (ID=200), all answering 12 questions. Therefore, I have a balanced panel-data set containing 200 people (ID) over 12 periods of time (the 12 questions). The variable Group indicates to which group the participant belongs, according to a certain personal characterstic.
Here's an example of my dataset, where ID is the personal ID of the participants, Class1, Anti1 and Class2 are three of their answers given to each of the 12 questions.:
I want to evaluate whether a person is more likely to answer C2 with either 1or 2, when the answer to Anti1 was 1 or 2 consecutively and controlling for the answer C1. In other words, I want to use a logit model with C2 as the dependent variable, and Anti1 and C1 as independent variables.
I am familiar with using the xtlogit command, and using either fixed or random effects. However, I want to evaluate per person whether the Anti1 coefficient is significant. More specifically, I want to find out whether in one of the two groups there are more 'significant Anti1' cases than in the other group. For this reason, I don't want aggregated results, but rather results clustered by the group.
Is there any way that I can get this result so that I can see the exact number of people for which the Anti1 coefficient was significant in both of the groups?
Thanks in advance, if anything is unclear please let me know.
I have a question regarding which model and commands I should use for my dataset. My dependent variable is categorical (only takes the values 1 or 2), and so are my two independent variables (also taking the values of 1 or 2). I observed 200 individuals (ID=200), all answering 12 questions. Therefore, I have a balanced panel-data set containing 200 people (ID) over 12 periods of time (the 12 questions). The variable Group indicates to which group the participant belongs, according to a certain personal characterstic.
Here's an example of my dataset, where ID is the personal ID of the participants, Class1, Anti1 and Class2 are three of their answers given to each of the 12 questions.:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte(Group ID Class1 Anti1 Class2) 1 1 1 2 1 2 1 2 2 2 2 1 1 2 1 2 1 2 2 2 2 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1 2 1 2 1 1 1 1 1 1 1 2 1 2 2 1 1 2 1 2 1 2 1 2 2 2 2 2 2 2 2 1 1 1 2 2 1 2 2 2 2 1 1 1 1 2 2 2 1 1 2 1 1 1 1 2 2 2 1 1 2 1 2 1 1 2 1 2 1 1 2 2 1 2 1 2 1 1 2 1 2 2 1 1 1 3 1 1 1 2 3 2 1 2 2 3 1 2 1 1 3 2 2 2 2 3 1 1 1 1 3 1 1 1 2 3 2 1 1 1 3 2 2 2 2 3 1 2 1 1 3 2 2 2 1 3 1 1 1 2 3 2 1 2 end
I am familiar with using the xtlogit command, and using either fixed or random effects. However, I want to evaluate per person whether the Anti1 coefficient is significant. More specifically, I want to find out whether in one of the two groups there are more 'significant Anti1' cases than in the other group. For this reason, I don't want aggregated results, but rather results clustered by the group.
Is there any way that I can get this result so that I can see the exact number of people for which the Anti1 coefficient was significant in both of the groups?
Thanks in advance, if anything is unclear please let me know.
Comment