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?
generating a new variable that is the result of extracting individual data points from a datasetHello I have data for historical breast cancer mortality rates for countries and I'd like to extract…
-atmeans- option with marginsMy question is about best practices while computing marginal effects. When should the option -atmean…
Mixed model interaction command reports error in Mac version of stataHi, this is my first time posting. I have been using stata for sometime now and had no problem in ru…
Flipping tables using eststo.Hi, I have a question concerning the construction of tables using eststo and esttab and posting them…
how to run a quantile regression for estimating panel data models using instrumental variable?Hi I am working on an economic problem using the quantile regression model of panel data. I need to …
Subscribe to:
Post Comments (Atom)
0 Response to What does xtset do exactly?
Post a Comment