Help with using the huxreg() function
On Tue, 22 Mar 2022 21:51:19 +0100
Linda Stefansson <linda.smile.stefansson at gmail.com> wrote:
The task is to make the table only display the two coefficients that all models have.
To this point I have made the regression table like this: huxreg(model_1, model_2, model_3, model 4, statistics = c(N = "nobs", R2 = "r.squared"), stars = c(* = 0.1, ** = 0.05, *** = 0.01)).
help(huxreg) describes an argument to huxreg() that defines the coefficients to display. You can specify them manually, or use a combination of Reduce() and intersect() to make R find out the required coefficients for you.
Best regards, Ivan