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
What is the interaction term in firm's industry case?In Dasgupta, 2019, p.2012, 2013, they want to examine the impact of staggered leniency laws on firms…
Deleting a row header from a customized tableI am creating a Table 1 using the "collect" command in Stata. I would like to have a "Total" row at …
initial level of depvarHi statalist, I'm looking at panel data across countries and industries, so for example with 10 indu…
Beginer LPM annalysis Help! (What tests to run on a LPM)Hello STATA Enthusiasts, I am working on a project for university statistics class and have been bu…
Boxplot of ProbabilitiesI've created a score that predicts mortality. Does anyone know what lines of code to use to create …
Subscribe to:
Post Comments (Atom)
0 Response to xtreg by group
Post a Comment