Skip to content
Back to formatted view

Raw Message

Message-ID: <20220323094841.0f624e25@Tarkus>
Date: 2022-03-23T06:48:41Z
From: Ivan Krylov
Subject: Help with using the huxreg() function
In-Reply-To: <CAB9BkXxYKyo1HEQRJno-Oi2puWrX+XzfvrFCOPtsb10rfJUGTw@mail.gmail.com>

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