Hello!
I am a complete newbie to stata and I am trying to run a Fama MacBeth regression using the asreg function in Stata. I keep getting errors when I run the regressions, I believe that my main problem is how my data is set up before importing it to Stata.
Basically, I am looking at the impact that ESG may or may not have on firms performance (stock returns). I have 299 firms from 2014-2018 inclusive with monthly returns and yearly ESG values (unbalanced panel with 16,234 observations). I have imported the Fama French Factors from their website and put all the data into one spreadsheet. I think my problem is the way I set up the "date" and I am getting confused on how I tell stata to regress for each "ID" for each month of the years. Any missing returns or ESG have been removed from the spreadsheet
my code:
xtset ID YrMth
asreg ExcReturns MktRF HML SMB RMW CMA, fmb
and in the result all the factors have been "omitted" and result in 0's
How should my date variable be set up in stata, for example January 2015
I may just be doing this all wrong, and confusing myself on a daily
Any help would be greatly appreciated!
Related Posts with Fama MacBeth with "asreg" in Stata
import excelI want to import a data from an excel sheet and I want all the variables to be in the format as doub…
Error of "asdoc": option text() requiredHi All, I'm using asdoc to output stat results, it worked well with: Code: bys country: asdoc tabs…
Need HelpHey Everybody, found this website trying to find Stata help online. I am currently enrolled in an an…
Counting observations after a certain event with two date variablesHi all, I have a database of projects that belong to a particular category and have a launch date a…
wald chi square and prob >chi square is .hello, I'm using ordered probit model, and the result the wald chi-square and prob >chi square is…
Subscribe to:
Post Comments (Atom)
0 Response to Fama MacBeth with "asreg" in Stata
Post a Comment