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
Fixed effect model omits my dummy variable.how do i fix it?I have a panel data with variables ROE as y variable ,Debtratio as dependent variable,firm size and …
Unique text string I have a dataset, approximately 7500 observations, where clinicians were requested to enter a treat…
SEM modification problem (SEM general question)Hi at all, i have a quite general question on how to model a SEM and i hope someone can help me out.…
Susbtituting characters or numbers inside a variableDear colleagues,: I have to work with a database that contains codes that I would like to codify. I…
Advice Regarding Working With Hierarchical DataI have a dataset of identifiers that are hierarchical - e.g., a given identifier can have a parent i…
Subscribe to:
Post Comments (Atom)
0 Response to xtreg by group
Post a Comment