I have a pooled panel data. The model is Yi,t+j=aj*Xi,t +bi,t (fixed effect) +... To make it simple, suppose j=0 and 1. The model simplifies to Yi,t+j=a0*Xi,t +a1*Xi,t+bi,t +... What I want is the panel data regression by group j; i.e., a1=0 when j=0 & a0=0 when j=1. I'm wondering if I could use command: bysort j: xtreg Y X i.i#i.t, fe. If this command does work, does it have the same bi,t across groups j=0 and 1? (this is what I want) If not, is there any alternative? Thanks a lot!
Related Posts with xtreg by group
PPMLHDFE is now on SSC (Poisson regressions with fixed effects)Dear all, Thanks to Kit Baum, the ppmlhdfe package is now on SSC (together with updated versions of…
AR 1 Auto correlation errorI am using a mixed model regression to determine what influences my response variable (V1), includin…
suest with multiple imputationsHi all: This is my first post. I'm an old time SAS user converting to stata. I want to compare coeff…
OLS GravityI'm trying to estimate an OLS gravity equation and I have encountered a problem regarding the model.…
Merging multiple files in a loopHi, I am trying to merge 12 files with similar files name. Each file just has one variable. I was f…
Subscribe to:
Post Comments (Atom)
0 Response to xtreg by group
Post a Comment