How do I combine polynomial rows of the same degree?

reg2a_1=lm(game_rating~votes)
reg2a_2=lm(game_rating~poly(votes,2))
reg2a_3=lm(game_rating~poly(votes,3))
reg2a_4=lm(game_rating~poly(votes,4))

stargazer(reg2a_1,reg2a_2,reg2a_3,reg2a_4,type="html",align=TRUE,covariate.labels=c("X", "X", "X2","X", "X2", "X3","X", "X2", "X3","X4"))

Basically, I want to have all the X2 for example on the same row so in total there will be one row for each degree.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.