How can I generate regression coefficients and adjusted r-squared into the new variables from the regression by id?

#1
My command is bysort id:reg yy x1 x2 x3 x4 x5 if est_window==1
I would like to generate regression coefficients and adjusted r-squared into the new variables but I don't know how to do it.