I am a beginner in Stata and I am trying to create a loop regression, store the coefficients of the DVs and then plot these. Does this code make sense?
forvalues i = 1/100 {
regress y x1 x2 x3 if ID==`i'
matrix b1 = e(x1)
matrix b2 = e(x2)
matrix b3 = e(x3)
}
I am using coefplot right after and it just does not work. Any help will be very highly appreciated.