Questions tagged [fixest]

86 questions
0
votes
1 answer

R: panel data and fixest package

I am trying to incorporate panel data analysis to a negative binomial with fixest package. I am unsure whether I am implementing the 'panel.id' argument correctly. According to the fixest's CRAN there are to identical ways to incorporate panel data…
YouLocalRUser
  • 309
  • 1
  • 9
0
votes
2 answers

R: Does fixest package support panel data analysis?

I am working with fixest package. Great results so far. My data could be set as a panel. Is there any way for fixest to run run panel data analysis. My model looks something like this: model <- fenegbin(incident~ treatdummy + poverty + industry +…
YouLocalRUser
  • 309
  • 1
  • 9
0
votes
2 answers

How can you export a regression table from r with etable and without the table environment?

Is there a way to export a regression table from r with the etable function (from the "fixest" package) without the table environment? Hence, the latex code should not start with \begin{table} but with \begin{tabular}. I know that it is possible…
Manuel
  • 47
  • 4
0
votes
0 answers

How do I cluster standard errors with panel data?

I have a panel data that follows the same individuals (id) over 2 time periods being 2002 and 2004 (year where year equals to 1 if the year is 2004). N = 10000 wage <- rnorm(N) educ <- rnorm(N) age <- rnorm(N) tce <- rnorm(N) work <- rbinom(n =…
anrisakaki96
  • 193
  • 8
0
votes
1 answer

How do I plot marginal effects of two-way fixed effects regression with interaction term

I have the following regression: tal_lpm4 <- feols(tal ~ provtariff + provtariff*i(sex) + i(sex) + as.numeric(educ) + age + age^2| year + tinh, data = employment0204, vcov_cluster(~year + tinh), …
anrisakaki96
  • 193
  • 8
0
votes
2 answers

R: Fixest class models bloat in size when saved

I am currently working with a big dataset (n>10 million). I found fixest package very helpful to run logit fixed-effects models fast (feglm). f1 <- feglm(result ~ log(rate1) + sex + age + development + pop + acad + size | state, se=…
YouLocalRUser
  • 309
  • 1
  • 9
0
votes
1 answer

How to rename complicated variable name in fixest etable

I'm wondering how to change a complex variable name with dict in etable in fixest package. For example, I have a regression Y ~ x1 + x2:abs(x3):x4 and I'd like to change the name of x2:abs(x3):x4. I have tried etable(..., dict = c(`x2:abs(x3):x4` =…
Matthew Son
  • 1,109
  • 8
  • 27
0
votes
2 answers

Is there any way to cross-reference fixest::etable()?

Question Is there any way to cross reference fixest::etable()? I know etable is a simple method, but it's actually very useful. If there is a way to do this, it would be very helpful. The environment is Windows 10, using R 4.1.2 and running…
ryoto
  • 361
  • 1
  • 10
0
votes
0 answers

Different R-squared by plm within regression and fixest?

I am running a FE regression of firm characteristics on the dependant variable effective tax rates. I tried both plm package and fixest package. I understand the differences in the standard errors (and I correct them with coeftest for the plm…
Alex
  • 1
0
votes
1 answer

Two-Stage-Least-Squares (2SLS) Fixed Effects in R

I need to do a 2SLS fixed effects regression in R on my panel data set, but I am really lost at the moment. I ran the model with fixest, but it returned a negative R squared. I also tried to run it with plm but I am not sure if I wrote the correct…
Lars
  • 1
  • 2
-1
votes
1 answer

R Markdown and "fixest" regression-tables

When working in R Markdown and using the amazing "fixest" packages for regressions, regression tables appear "tiny" in the knitted document. As a temporary solution, some lines (see code below) in the produced Latex document can be deleted, which…
minimouse
  • 131
  • 10
1 2 3 4 5
6