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?
Help to correctly reduce instrument count with xtabond2 commandHello everyone, I am estimating a model where my dependent variable is economic growth and all my i…
Computing confidence intervals for meta-analysisHi there, I am currently attempting to run a meta-analysis on the effects of debt on economic growt…
Only keep newest observationsHey everyone, Code: * Example generated by -dataex-. To install: ssc install dataex clear input lo…
Reshape LongDear all, I am using this code to reshape data. It does reshape but the date order of the original …
Combining two variablesI have two variables which I want to combine together. Basically, the first variable has values like…
Subscribe to:
Post Comments (Atom)
0 Response to What does xtset do exactly?
Post a Comment