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
Ask for Help with Computation of Running Sum of a Variable within Multiple Variables in Stata.The long format dataset is presented as follows. It has 3 columns, gender (male=1; female=2), period…
Interaction term and main effectsDear Stata forum members, Would you please help with interpretation of my obtained results. I have …
Panel model - Heteroskedasticity and Graphical representationHi everyone! I am conducting my masters degree thesis, performing a panel model in Stata. The panel …
Alternative to fixed-effects Binomial Model for longitudinal dataHi all: My dependent variable, v6mouses, is drug use; 60.15% of the result is 0 and 26.92% of the r…
Posthoc testing after ANOVADear Statalist team, I am interested in doing Posthoc testing after ANOVA. I only have aggregate d…
Subscribe to:
Post Comments (Atom)
0 Response to Query of small sample
Post a Comment