[R] Help with using the huxreg() function

Ivan Krylov kry|ov@r00t @end|ng |rom gm@||@com
Wed Mar 23 07:48:41 CET 2022

On Tue, 22 Mar 2022 21:51:19 +0100
Linda Stefansson <linda.smile.stefansson using 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,

More information about the R-help mailing list