When someone converts a -regress- code into a -xtreg- code with the -fe- option, is it just a matter of substituting like this?:
regress weight age1 age2 height age1ht age2ht
becomes
xtreg weight age1 age2 height age1ht age2ht, fe ?
sort age
by age: regress weight height
becomes
sort age
by age: xtreg weight height, fe ?
regress weight age1 age2 height age1ht age2ht
becomes
xtreg weight age1 age2 height age1ht age2ht, fe ?
sort age
by age: regress weight height
becomes
sort age
by age: xtreg weight height, fe ?
Comment