Questions tagged [fixest]

86 questions
1
vote
1 answer

Can you make Stargazer regression output tables when you have a list?

I ran an binomial logit model while controlling for bank- and time-fixed effects by using the feglm() function from the fixest package. However this function saves the regression output as a list. Unfortunately Stargazer doesn't seem to recognize…
MathisVS
  • 13
  • 2
1
vote
1 answer

Fixed effect counts in modelsummary

I have a modelsummary of three fixed effects regressions like so: remotes::install_github("lrberge/fixest") remotes::install_github("vincentarelbundock/modelsummary") library(fixest) library(modelsummary) mod1 <- feols(mpg ~ hp | cyl, data =…
RoyalTS
  • 9,545
  • 12
  • 60
  • 101
1
vote
1 answer

Fixest and Standardized Coefficients from Easystats in R

I was wondering what would be the best way to calculate and present standardized coefficients using fixest. Here is what I tried using easystats library(parameters) library(effectsize) library(fixest) m <- lm(rating ~ complaints, data =…
1
vote
0 answers

Combine graphs created by the fixest package

I am trying to combine different graphs created by the fixest package. library("fixest") library("ggpubr") data(base_did) base_inter = base_did est_did = feols(y ~ x1 + i(period, treat, 5) | id+period, base_inter) pl1 <- iplot(est_did) pl2 <-…
yacx
  • 167
  • 2
  • 13
1
vote
3 answers

How to reference objects in a different environment inside a formula

I'm using fixest::feols() and I have a function I want to pass an argument to in order to subset the data using the subset = argument. However when keep getting the error: The argument 'subset' is a formula whose variables must be in the data set…
cach1
  • 105
  • 8
1
vote
2 answers

feols with step-wise fixed effects not working with custom formula

I need to feed a custom formula to feols and have it estimate multiple models (various fixed effects), but this seems to break the sw() function. Compare: library(fixest) feols(mpg ~ disp | sw(gear, gear + carb), data = mtcars) (That works.) This…
lethalSinger
  • 606
  • 3
  • 9
1
vote
1 answer

IV regression in Fixed-Effect Models with diagnostics

I want to do an IV regression in Fixed-Effect Models with diagnostics (Wu-Hausman, weak instrument, etc.). I tried three options, each with its problem-- y is dependent variable x1 is the endogenous independent variable c1, c2, c3 are control…
user7453767
  • 339
  • 2
  • 14
1
vote
2 answers

How to save a fixest class coefplot as a jpeg or pdf?

I have a nice coefplot that plotting an object that I calculated with feglm command. Now I want to save it as an pdf and jpeg object that I could export somewhere else. I would also like to tinker with the width and height. Thank you,
YouLocalRUser
  • 309
  • 1
  • 9
1
vote
2 answers

How do I store and re-use same sample from a fixest regression in a subsequent regression in r?

How do I tell R to store the observations from a fepois regression as a data frame so I can use the same sample in a subsequent regression? Here's a simple example of my problem: library(fixest) m <- fepois(y ~ x | id, data); n <- fepois(y ~ x,…
1
vote
0 answers

diagnostic plots for R::fixest

Is there any way to get diagnostic plots for the package fixest? e.g. leverage plots, actual v predicted, qq plots, residual plots? I notice that if I have plot(x) where x is a fixest object, it gives me an error. 'x' is a list, but does not have…
Daycent
  • 455
  • 4
  • 15
1
vote
2 answers

Removing GOF in texreg with fixest library's feols regression object in R

I am using feols from the fixest library in R and then texreg / htmlreg to create tables. I would like to exclude several Goodness of Fit measures from my table (AIC, BIC, loglikelihood, etc), but texreg interprets my regression as an object form…
Márton
  • 35
  • 2
1
vote
1 answer

How to have both lm and fixest model with different vcov standard errors in modelsummary package?

I'd like to create an LM with HC3 corrected standard errors and a fixest model with cluster robust standard errors in the same table. see my MRE below: df <- mtcars models <- list() models[[1]] <- lm(cyl~disp, data = df) models[[2]] <-…
Daycent
  • 455
  • 4
  • 15
1
vote
1 answer

What is the easiest way to get the first stage F-statistic from an feols model?

I am trying to extract the first stage F-statistic from an IV model run using feols in R. My ultimate goal is to report the statistic in a table exported using etable. What is the best way to do this?
sdg
  • 165
  • 8
1
vote
1 answer

Questions about fixest package: weighting observation using feols

I am new to R for regression analysis. I am trying to use feols to do the analysis but I am wondering if feols has weighting options which are equivalent to Stata weighting like aweight, pweight. Particularly, I am looking for a weighting option…
Austin
  • 11
  • 1
1
vote
1 answer

Memory efficient cluster bootstrap

I have a very large dataset (10m observations but reduced to 14 essential variables), and am following the following thread: Cluster bootstrapped standard errors in R for plm functions My codes after loading libraries are: fe_pois <-…