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.
Related Posts with Query of small sample
Summary stat. to excelDear All, I would like to export my results to an excel sheet. I tried this code below but it did n…
-ritest- Checking for statistical significanceHello All, Apologize in advance for a very basic question. To check for the statistical significanc…
Help with small sample panel data with cross-sectional dependenceI'm using the CCE estimation technique for a research work. My dataset consists of eight cross-secti…
Event History Analysis vs. LogitI have a conundrum regarding a policy analysis I'm running. I have a variable stateorder that is cod…
Question on bar graph (percentages of answer options) by group for more than 3 variablesHi all I am fairly new to Stata and the forum, I hope the way I described my problem is ok! Thank …
Subscribe to:
Post Comments (Atom)
0 Response to Query of small sample
Post a Comment