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
using commands to search within a smcl fileIs it feasible to use any command to search for a text string within a smcl file? this would help lo…
How can I overlap two marginsplot graph???Hi. I always thanks to statalist. I have six years of cross sectional data for SBP and BMI. There …
Interpreting output for 'test' command in logistic regression.I am using Stata14 to run logic regression on a number of variables including some that are categori…
Bootstrapping a two-step estimation with survey dataHello everyone, This is more of a clarification question as my code runs without any errors: I am …
using -encode- with multiple string variablesI use Stata 14 on Windows. I have a data set of 30,000 observations with multiple observations (diff…
Subscribe to:
Post Comments (Atom)
0 Response to xtreg by group
Post a Comment