Dear all,
I am using Stata 16, on mac. Here is the code that I have:
asdoc reg hard_drugs_DLI ait Dit fp1 hard_drug_start enl_mil employed_01_int employed_02_int employed_03_int employed_04_int employed_05_int employed_06_int employed_07_int employed_08_int employed_09_int mil_01_employer mil_02_employer mil_03_employer mil_04_employer mil_05_employer mil_06_employer mil_07_employer mil_08_employer mil_09_employer college_enroll i.year, vce(cluster PUBID_1997) add(cluster id, Y, Year Effects, Y, birthday Xi Xit fixed effects, YNYY) fs(6) drop(i.year fp1 enl_mil employed_01_int employed_02_int employed_03_int employed_04_int employed_05_int employed_06_int employed_07_int employed_08_int employed_09_int mil_01_employer mil_02_employer mil_03_employer mil_04_employer mil_05_employer mil_06_employer mil_07_employer mil_08_employer mil_09_employer fp2 fp3 hard_drug_start sex race int_bday college_enroll ait Dit) dec(3) cnames(Model 1) row nest save(Regression) append
Is there a way I could add fixed effects to this code?
Thank you so much in advance,
Jason Browen
Related Posts with Applying Fixed Effects to asdoc command?
Divide data into groups according to percentile rank AND another given variable (if tie exists)Hi experts! I have a four-year repeated cross-sectional data set. I want to divide my observations …
Calculate daily stock return relative to peak in the last 6 month periodI have daily stock market data and would like to calculate the return for each observation relative …
How can I extract a part of a string variable which contains zipcode information?Hello, I'm working with Massachusetts zip code data and there are 3 kinds of formats the data is cur…
How can I create one binary variable that =1 if an observation contains one of multiple substrings?Hi, I want to create a binary variable that =1 if an observation within var1 contains certain substr…
Return for previous year with daily dataHi everybody, i have panel data with gaps in the time variable (weekends, holidays). I want to calc…
Subscribe to:
Post Comments (Atom)
0 Response to Applying Fixed Effects to asdoc command?
Post a Comment