Description:
When trying to display only fit statistics (e.g., F-statistic, RMSE) in an etable call by dropping the coefficient section, the argument drop.section = "coef" does not work as expected.
According to the documentation for drop.section:
Character vector which can be of length 0 (i.e. equal to NULL). Can contain the values "coef", "fixef", "slopes" or "stats". It would drop, respectively, the coefficients section, fixed-effects section, the variables with varying slopes section, or the fit statistics section.
Expected Behavior
The table should display only the fit statistics (F-statistic and RMSE), excluding the coefficients.
Actual Behavior
The following error is returned:
The (nullable) argument drop.section must be a character vector with values equal to 'fixef', 'slopes' or 'stats'. Problem: no match was found for 'coef'.
Minimal Working Example (MWE)
# Load necessary libraries
library(fixest)
# Create a simple dataset
data(mtcars)
# Run basic regression models
model1 <- feols(mpg ~ cyl + hp + wt, data = mtcars)
model2 <- feols(mpg ~ hp + wt + qsec, data = mtcars)
# Attempt to use etable to display only fit statistics without coefficients
etable(
model1, model2,
drop.section = "coef",
fitstat = c("f", "rmse")
)
Description: When trying to display only fit statistics (e.g., F-statistic, RMSE) in an
etable
call by dropping the coefficient section, the argumentdrop.section = "coef"
does not work as expected.According to the documentation for
drop.section
:Expected Behavior
The table should display only the fit statistics (F-statistic and RMSE), excluding the coefficients.
Actual Behavior The following error is returned:
Minimal Working Example (MWE)