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
Can not replicate what teffects ipw is doingHi, I want to compute ate and atet using inverse probability weighting (ipw). So I use a Stata exa…
effect of treatment in a three arm studyDear Statalist. I have a dataset from a three arms study (one of the arms is control, and the other…
Individual tables using esttab/estoutHi, I've now been searching around for quite some time but am just not able to find answers to my sp…
No p and t-values for AR1 and AR2 in one step system GMMHello, I need your help on what it means that after running a one step system GMM it gives me the fo…
Making the first row become Variable Names and Transposing the dataHello, How can I make the first row of observations become the Variable name? I would also like to…
Subscribe to:
Post Comments (Atom)
0 Response to Weighted least squares (WLS) with wls0 and regwls
Post a Comment