Dear all,
I have a cross sectional data with a variable showing number of siblings "n_siblings" for each individual. I also have a variable "m_fam" which identifies each family by a unique id number (so some individuals in the data are from the same family). I want to do a family and sibling fixed effects analysis. Please how do i go about this?
Will it be
xtset m_fam
clogit x y, group(m_fam)
or
xtset n_siblings
clogit x y, group(n_siblings)
Related Posts with Fixed effects
How to draw a smaller sample from a larger dataset with different mean/ distribution than that of larger/ parent dataset?Hello, I want to draw a ssample (with certain mean/ distribution) from a larger dataset that has di…
Removing specific observationsHello everyone, Based on my title post it seems the question is repeated but no it’s different. my q…
Using the foreach-command to find a spesific part among hundreds of observations in a string variable.Dear members of Statalist, I am fairly new to Stata and I have been struggling with an issue I beli…
Problems of setting intial values in semDear all, I am running a sem on the following data. My command is sem trust->std_retweet std_fav…
Stata is turning out results very slowly. What can i do?I have a dataset comprising about 30 million observations. When i try to execute even basic commands…
Subscribe to:
Post Comments (Atom)
0 Response to Fixed effects
Post a Comment