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
haw to make tp fp fn tn on left of accuracy forest plot ?hello , I am a new one for stata ,and i was doing a accuracy analysis ,after my code running ,I got …
when I used the command copy ,I encounted "Java installation not found".I am currently intereted in using stata to do webcrawler.When I want to copy the content in https://…
Factor Analysis for Customer SegmentationI have done FA and identified the number of segments. However, I am unable to assign each respondent…
Matching 2 datasets based on multiple criteriaDear all, I am using Stata 13.1 and trying to match two datasets in the following logic: The first…
Importing SPSS data file into STATA by usespss command, but the date variable did not as expected.Dear statalists, I imported the SPSS data file into STATA by using "usespss" command. But the date …
Subscribe to:
Post Comments (Atom)
0 Response to Error "Option not allowed" when creating coef
Post a Comment