I have 2 variables, investment and cash flow. I also generated a dummy variable called age, which has 3 levels 1 for young,2 for growth and 3 for mature.Now,I tried to regress investment on cash flow with bysort command. Stata displays an error command ,"not sorted ".I think the problem is with the lag operator. I have appended my commands. Can anyone help me what went wrong.
[bysort age : xtreg investment cashflows l.cashflows i.year,fe vce(robust)] .
Related Posts with bysort command while regressing
Merge 2 datasets: individual and county level datasetsI need to merge two datasets. One has individual-level data and the other has county-level data. I…
Error when use xtcsd (_variable merge already defined)Hi, I have a problem when I use xtcsd. After I run using xtreg depvar indepvar, fe , and then use "x…
Help with multilevel survival analysisI am currently conducting a study that follows patients over 30 days to see if they have an event. P…
-xtevent- Stata module to estimate and visualize linear panel event-study models now available on SSCIt's been a while since I posted anything to Statalist!!! Thanks to Kit Baum, -xtevent- is now avai…
Dummy Variable as Dependent Variable in a Panel RegressionGood Day Everyone! I am doing a panel regression on have a problem in running panel models in Stata…
Subscribe to:
Post Comments (Atom)
0 Response to bysort command while regressing
Post a Comment