Dear Statalist,
I am conducting a long-run event study with the use of the Fama French 3 Factors model.
I am using the WLS regression, I want to use the monthly number of firms in the event portfolio as weights. Moreover, I want to use the equal-weighted monthly returns on each portfolio.
First of all, I uploaded the excel file and changed the format of the Date2 from string to Date3 variable (monthly format), then I declared the data set to be time series data.
I intend to use the Stata command wlsreg or wls0 with the options: wvar = No. of firms in the event portfolio in a month type(wlstype) - The choices are: abse - absolute value of residual e2 (With the dependent variable is the company name, explanatory variables are MktRF, SMB, and HML.
Could anyone please help me with the Stata command for WLS regression? I am very grateful.
Thank you and Kind regards,
Chi
Related Posts with Weighted least squares (WLS) with wls0 and regwls
Loop with consecutive numbersHello Stata community, I am trying to replace multiple id of a data set, where the ids are consecut…
Selecting all dates within groups that are within one week of each other and creating a sub-group idHello all, I'm a new Stata user and new to Statalist; I'm currently using StataMP 14. Purpose: I'm…
Pasting the data from Excel to Stata converts values of the variableDear Stata Members I am dealing with some financial data like income, total assets, etc. Many of the…
Adding 4 arguments in setstars() of asdoc / asdocxI seem to experience an issue with the setstars() arguments using asdoc or asdocx. It seems that it …
Format regression coefficients using file writeI am outputting non-standard tables to TeX and using file write following this example: https://gith…
Subscribe to:
Post Comments (Atom)
0 Response to Weighted least squares (WLS) with wls0 and regwls
Post a Comment