Hi Statalisters
If I set a dataset to a panel dataset using xtset, what exactly is STATA doing? For example, I always thought that if I say:
logit y x1 x2 i.period i.person
then it should be the same as
xtset period person
xtlogit y x1 x2
Meaning, I thought setting up a panel with xtset is the same as controlling for each peron and each period in your dataset.
But I just ran both versions on the same dataset and I get different results, now I am not sure what xtset actually does.
Any advice would be greatly appreciated.
Thanks
Related Posts with What does xtset do exactly?
Creating matched-adjusted performance measuresHi everyone, I am new to this forum and I'm hoping that someone can help me. I have a sample of fir…
Dropping many variables if all observations contain a certain textDear All, I am having trouble with a command in Stata and no matter how much I researched beforehand…
The error 'option robust not allowed' in the "Oaxaca_rif" commandHi. I am going to use the "Oaxaca_rif" command. However, although I run the example in the help fil…
Comparing interaction effects using "nlcom"Dear Statalisters, In my model, I have two moderation effects which I would like to compare using t…
Calculating timeframes between variables in long formatDear Forum-Users, I have a data set in long format – combining prescription data and dates of doc vi…
Subscribe to:
Post Comments (Atom)
0 Response to What does xtset do exactly?
Post a Comment