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
Correlation for two variables for most recent 5 yearsHi, I want to find the correlation between deflated revenues and deflated expenses for the most rec…
Quantile regression - error message for Q(1)Dear group This is my first time that I post a question. Command: qreg Y1 X1 X2 X3, quantile (?) …
Between group difference of 2 groups with covariate-adjusted meansHi, I am new to Stata and I need to know how can I go about comparing the adjusted means between 2 …
Creating graphs with scalar variablesI am having trouble difficulty creating a graph using scalar variables stored from stata (found by e…
extracting components from filename including special charactersHi, i received a bunch (several hundred) of xls. files that should be read into Stata. Unfortunately…
Subscribe to:
Post Comments (Atom)
0 Response to bysort command while regressing
Post a Comment