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?
Subgroup analysis vs. interaction termsHello, I want to compare the effect of one variable (i.e. public debt) on a dependent variable (i.e…
How to open a .dat data file in STATA?Hello! I am currently helping out on a research project that previous used SPSS to do statistical a…
Granger test and var (xtvar, prHi everyone, I am encountering a few problems when I tried to run var codes to be followed by a Gra…
Esttab problem with interaction fixed effectHello, I am using a survey dataset (the World Values Survey) and trying out the following code in S…
Problem in String Matching using listsI have sample individual addresses data which is pretty unclean. There more than 400000 observations…
Subscribe to:
Post Comments (Atom)
0 Response to What does xtset do exactly?
Post a Comment