Questions tagged [fixest]
86 questions
0
votes
0 answers
marginal effects in R not producing std. error or confidence interval for first variable value
I am trying to calculate the average prediction for a regression that includes an interaction term. I am using the avg_prediction command from the marginal_effects package to do this. However, when I run the command with both variables included in…

sd3184
- 69
- 4
0
votes
1 answer
How to include etable() regression output as latex table into rmarkdown?
I want to include outputs of a regression as latex table in rmarkdown as html output. I tried:
regression <- function(analysis_data,formula) {
print(xtable(etable(feols(fml = formula,
data = analysis_data
, cluster =…

tiny
- 129
- 6
0
votes
1 answer
How to remove horizontal line at zero in coefplot in r?
I have created this plot using the following code:
coefplot(list(
feols(inc_ratio ~ provtariff | hhid02 + year,
subset(inc_0206_spouse_p, Female == 1 & educ > 9 & year == 2002 | year == 2006),
weights = ~hhwt,
vcov =…

anrisakaki96
- 193
- 8
0
votes
0 answers
Problem installing R package fixest: why do I get a DOUBLE_EPS not declared error?
Any idea what might cause a DOUBLE_EPS not declared error when installing R package fixest?
Ultimately I want to install the package didimputation. It fails because doing that requires fixest to be installed, the latest version of which requires R…

jms202
- 51
- 1
- 3
0
votes
1 answer
F-test (constrained vs unconstrained model) after fixest estimate
I want to test a constrained vs an unconstrained model.
Estimates are obtained with fixest (I cannot use the build-in function "wald" in my case).
Here is an example:
library("fixest")
data(airquality)
est_nc <- feols(Ozone ~ Solar.R + Wind +…

yacx
- 167
- 2
- 13
0
votes
1 answer
Using fixest/etable to stack regression results from feols to create stacked panels
How can I vertically stack two different sets of regression outputs using the same set of dependent variables from fixest/feols using etable? For instance, suppose you estimate the same specification with different samples
est1 <-…

Dawit G
- 1
- 1
0
votes
1 answer
Full versus partial marginal effect using fixest package
I have would like to know the full marginal effect of the continuous variable provtariff given the interaction term Female * provtariff on the outcome variable log(totalinc) as well as the coefficient of the interaction term.
Using the code:
…

anrisakaki96
- 193
- 8
0
votes
0 answers
Split fixed effect regression: ERROR in esttable() output "'nchar()' requires a character vector"
I have been trying to run a fixed effect OLS regression using the package "fixest".
There are supposed to be multiple regressions generated (per year) using "split = "year"".
This seems to work without any errors but when I try to plot the…

Jolan
- 1
- 1
0
votes
0 answers
Cook's Distance in fixest::feols
I have a dataset with 1-N observations per firm per year (e.g., dividends, some pay quarterly, other yearly, some pay only in a single year, others in multiple years). I want to estimate a regression model with firm and year fixed effects. I do this…

AlexanderP
- 126
- 6
0
votes
1 answer
R: feglm dummy coding
I´m trying to run fixed effects regressions in R using the feglm command from the fixest package.
The data contains three dummy variables: (1) variable z is 0, (2) variable z is between 1 and 8, and (3) variable z is larger than 8. I understand that…

mosltyharmless563
- 11
- 2
0
votes
1 answer
Is there a way to transform the reported fixest coefficients and standard errors in an etable?
I am trying to report results from some fixest regressions using etable. However, I want to report incidence ratios alongside feols regression results on the same table. Incidence ratios are basically the exponentiated coefficients, and so are their…

Tanay
- 101
- 1
0
votes
1 answer
Multiple fixest_multi models and shape parameter - modelsummary package
Again, thanks to Laurent for answering questions and supporting the modelsummarypackage.
library(tidyverse)
library(fixest)
library(modelsummary)
fit<-mtcars %>% feols(c(mpg,hp )~1)
fit_1 <- mtcars %>% feols(c(mpg,hp,wt )~1)
fit_2 <- mtcars %>%…

astrae_research
- 73
- 2
- 9
0
votes
1 answer
Custom coefficient format for specific variable in fixest etable
I'm wondering if there's a way I can format the coefficient reported in etable in a customized way.
For example, in the below regression
library(fixest)
feols(Sepal.Length ~ Sepal.Width + Petal.Length + Petal.Width | Species, iris)
model_fit =…

Matthew Son
- 1,109
- 8
- 27
0
votes
0 answers
Can fixest self-compute inverse variance weights?
set.seed(1018)
tibble(X = rnorm(1000),
Y = X + rnorm(1000),
G = sample(c("A","B"),1000,replace=T)
) %>% fixest::feols(data = .,
fml = Y ~ X | G,
se = "hetero",
weights = ???) %>%
tidy %>%
…

GiulioGCantone
- 195
- 1
- 10
0
votes
2 answers
How to iterate over many dependent and independent variables to produce a list of regressions using fixest
DATA BELOW
library(fixest)
analysis<-tibble(off_race = c("hispanic", "hispanic", "white","white", "hispanic", "white", "hispanic", "white", "white", "white","hispanic"), any_black_uof = c(FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE,…

sd3184
- 69
- 4