Dear Statalist,
Following is the code for firm and year fixed effect using xtreg
May I know how can I change this model to etimate it using wls (weighted Least Squares) ?
I know I can use ..., be wls instead of fe. But,what I need to know is how can I keep ....,fe and still use wls in the same xtreg
Following is the code for firm and year fixed effect using xtreg
Code:
xtset companyid year_ xtreg Y X1 X2 X3 i.year, fe
May I know how can I change this model to etimate it using wls (weighted Least Squares) ?
I know I can use ..., be wls instead of fe. But,what I need to know is how can I keep ....,fe and still use wls in the same xtreg
Comment