I would like to do a linear regression with y
being my dependent variable and x1 x2 x3
being my independent variables. I also have "control" variables z1 z2 z3
which I would like to include but not display the results of.
summary(lm(y~x1+x2+x3+z1+z2+z3))
Is there a way for summary not to display the coefficients for my control variables?
As @MrFlick suggested, using summary.lm can help.
Code:
Output :