Hey guys,
my goal is to regress the natural logarithm of total industry sales and an index variable of years, with time serving as independent variable and take then, the antilog of the regression coefficient capturing the growth rate of sales.
In order to calculate that I used the following command
bys sic_d: gen sales = sum(sale)
gen sales_log=log(sales)
bys sic: asreg sales_log y1, wind(fyear 5)rec coef
drop _R2 _adjR2 _b_y1 _b_cons _coef_cons _Nobs [... this command ist repeated accordingly for every year].
However, it generates an error message after the the third line telling me "option coef" not allowed (it works fine if I calculate the standard error by using "se" instead of "coef").
Do you guys have any idea how to solve that?
Nick Cox Clyde Schechter maybe you guys have any idea since you have solved similar problems before?
Related Posts with Error "Option not allowed" when creating coef
Predicted probabilities at specified values of case-specific variables clogitDear all, I was estimating a conditional logit model with alternative-specific coefficients for an …
Variable type change after mergingHello Statalists, I have a question about data merging. I am merging two data sets together ("mast…
graph with mean along 90% confidence interval?Dear All, I have the following data Code: * Example generated by -dataex-. To install: ssc install …
What commands would be needed to create this tableI want to create a mean randomization check table for a RCT. Basically I want to generate a table li…
OLS and GMM regression on insurance dataI have some insurance data and I want to make a) an OLS regression and b) an GMM regression on th…
Subscribe to:
Post Comments (Atom)
0 Response to Error "Option not allowed" when creating coef
Post a Comment