You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 modelsmodel1<- 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")
)
The text was updated successfully, but these errors were encountered:
kylebutts
added a commit
to kylebutts/fixest
that referenced
this issue
Feb 19, 2025
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)
The text was updated successfully, but these errors were encountered: