Dear Statalist,
I am doing an analysis of ESG ratings on stock returns. I have a variable called Ratdum which equals 1 if a company is rated, and zero if it is not rated. My dataset is a panelndataset.
What I want to know is: how can I limit my regression to only include observations for which Ratdum !=0 for all t. Such that: I don't want to include companies that never got rated.
my current code is:
in $h1 is the variable i.Ratdum.
kind regards.
I am doing an analysis of ESG ratings on stock returns. I have a variable called Ratdum which equals 1 if a company is rated, and zero if it is not rated. My dataset is a panelndataset.
What I want to know is: how can I limit my regression to only include observations for which Ratdum !=0 for all t. Such that: I don't want to include companies that never got rated.
my current code is:
Code:
reghdfe $ylist $h1, absorb(n_ID i.Quarter) vce(cluster n_ID)
kind regards.
Comment