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
malmq.ado could not work with the save(filename) option, anyone know what's wrong with the ado file? ado file and datasets attached I use malmq.ado to calculate malmquist index in stata 15, it works OK.But when I want to save resul…
Moderated mediation using GSEM from a difference-in-difference approach - calculating iniDear Statalist-ers, I hope this message finds everyone well. I am currently running some Difference…
Error 301After I run the following regression: bysort FYEAR SIC: regress TACCATw ATLAGINVw REVATLAGw PPEATLAG…
Using*two*inputs variable*in*measuring*Malmquist*Productivity*IndexHi I am trying to calculate malmquist productivity index with two inputs (Farming Grain) , but when…
Time-lagged variable for cross-sectional dataHi, I have a seemingly simple recoding problem, which I could not solve by reading the documentatio…
Subscribe to:
Post Comments (Atom)
0 Response to bysort command while regressing
Post a Comment