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
Categorize income variable due to quartilesHello, I assume the solution is very simple, but I'm just standing at a loss.... I have to categro…
IRF in a SVAR with manually modified B matrixHello, I'm estimating a SVAR with both government spending and tax rates, as well as GDP, similar t…
Common trend assumption in DiDHi all, I am currently working on a project where I try to investigate competition in online traffi…
Saving variables in foor loopDear all, I am new with stata and currently trying to figure out how to make the following loop wor…
Need-adjusted Health Care Utilisation and the Concentration IndexHello everyone, for my studies, I would like to estimate income-related inequality across countries…
Subscribe to:
Post Comments (Atom)
0 Response to bysort command while regressing
Post a Comment