Skip to content

Help with using the huxreg() function

3 messages · Linda Stefansson, Bert Gunter, Ivan Krylov

#
Hello,

I am currently studying Econometrics at my university in Sweden, and we use
RStudio.
We are now doing our last assignment and I need a little bit of help with
it.

I have made a regression table using the huxreg() function for 4 different
models. The task is to make the table only display the two coefficients
that all models have. Since two of the models use the LSDV approach, they
have a lot of different coefficients which I would like to exclude. How do
I do this? 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)).

I would really be grateful if you could help me with this. I don't know if
this is the right way to ask for help, but at least I thought I could give
it a try.

Best regards,

Linda Stefansson
#
" I don't know if
this is the right way to ask for help, but at least I thought I could give
it a try."

It isn't. Read the posting guide linked below to learn what is
expected here. In particular, please note that it explicitly says:
"Basic statistics and classroom homework: R-help is not intended for these."
(though sometimes people do reply)

Also, questions about specialized packages (like huxreg)  will often
go unanswered -- there are thousands of packages, after all. Note that
huxreg has a vignette -- have you studied it carefully? You may also
wish to contact the maintainer (found via the maintainer() function)
as there may be package-specific Help resources maintained by them.

Finally, RStudio is not R.  RStudio is a private company with their
own Help resources at:
https://community.rstudio.com/
So if your issues involve RStudio developed packages/ecosystems like
the Tidyverse, that is probably a better place to look for help.

(Also, please note that if you post *here*, this is a *plain text*
list: HTML can get messed up by the server, as the PG says).



Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Tue, Mar 22, 2022 at 2:18 PM Linda Stefansson
<linda.smile.stefansson at gmail.com> wrote:
#
On Tue, 22 Mar 2022 21:51:19 +0100
Linda Stefansson <linda.smile.stefansson at gmail.com> wrote:

            
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.