Dear Statalist,
I would like to get your advice about a stata command.
I prefer to generate a small sample of analyst (fiscal-year):one group is fiscal_year- analyst who forecast high-tech firms; the other is fiscal_year - analyst who forecast both high-tech firms and non high-tech firms.
I am wondering whether my following command is correct:
sort gvkey fiscal_year
by gvkey fiscal_year: gen analyst = 1
replace analyst =0 if high_tech == 0
gen analyst_all = 0
replace analyst_all = 1 if analyst == 1 & analyst == 0
And I will use 'if' when I run the regression.
I suspect I may do wrong for the later one.
I am wondering can you correct me if possible?
Thank you.
0 Response to Query of small sample
Post a Comment