Hello,
I ran into difficulties when building fixed effects Multinominal Logistic Regression Model with Panel Data using Stata.
The dataset is a longitudinal and the variable "StudentID‘’ is nested within the variable "SchoolID".
Meanwhile, each student was measured multiple times and the variable "time" is in the dataset.
My boss wants me to do a fixed effect multinominal logistic regression model for him and he said he knew nothing about it. (His boss asked him to do this)
The 1st question is when using xtset command, for this dataset, I should use xtset studentID or xtset studentID time or xtset schoolID?
The 2nd question is when buidling the requested fixed effect model,
what command I should use?
xtmlogit depvar indvar1 indvar2 indvar3 indvar1#indvar2, fe vce(cluster schoolID) rrr is correct?
when adding (cluster schoolID) into the model, the error message said, "groups are not nested within clusters".
Thank you for your help.
Related Posts with How can I Correctly Build the Fixed Effects Multinominal Logistic Regression Model with Panel Data?
How to Correctly Create a Variable to Indicate if a student Failed Grade in Stata?Hello, I have a small dataset as follows, id is student id, and gr represents grade. If a student fa…
Connect X and Y axisHi When I use scheme for twoway graph, such as white_tableau, etc, X axis is separated from Y axis.…
Merge if variable name is similarDear Stata users, I am trying to merge two datasets which are firm-level panel data (master) and N…
Stata interpreting the same string value as different valuesI have postcodes in my dataset that I want to group together. As you can see when I type tab Postcod…
How to Distinctively Remove the Observations with Specific Missing Value Patterns in Stata?Hello, I have a small dataset as follows, clear input byte (id gr) 1 1 1 2 1 2 1 . 1 . 1 . 2 1 2 2 2…
Subscribe to:
Post Comments (Atom)
0 Response to How can I Correctly Build the Fixed Effects Multinominal Logistic Regression Model with Panel Data?
Post a Comment