Dear All,
I have a question regarding WLS regression using Stata commands regwls and regress and would kindly ask for your help.
For your information, The general idea is I want to use WLS regression with the monthly number of firms for each observation as weights (I created the weight column on excel and imported into Stata since I do not know how to generate it on Stata). Additionally, the "avg" variable is the equal-weighted monthly returns on each portfolio this is my dependent variable.
Firstly, I used the command "regwls avg MktRF SMB HML [aw=1/ Weight]" for the WLS regression with the analytical weight (However this command does not work on my Stata 13 version). Lately, I tried the command "regress avg MktRF SMB HML [aw=1/ Weight]" and it worked.
Could someone please let me know if the two commands are the same and whether my approach is correct?
Many thanks for your help!
Best regards,
Chi
Related Posts with WLS regression using regwls and regress
Removing middle of a string between certain charactersHello Statalist, I have a string variable which is interspersed with HTML tags (e.g. "<br>" o…
multicollinearity check for logistic regression including binary and categorical variablesHey everyone, i have to analyse panel data for my thesis. I use Stata version 15.1. I chose the log…
Fixed effect or first differencegen gr_rate = D.lnuclms reg lnunclms ez y1982-y1988 Given this model, either the within transformati…
Reshape data to long - no stub, time in long formatDear all, I have a dataset in a bit oddly shaped. The time (the data is hourly for 30 years) is alr…
-margins- . *(not estimable)Hi folks, I could not get outputs after -margins. Following are estimations followed by -margins- o…
Subscribe to:
Post Comments (Atom)
0 Response to WLS regression using regwls and regress
Post a Comment