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
Hello, I am running into similar issues when using modelsummary with the fixest package. The p-values in my fixest results do not match those printed by modelsummary.
p-value for language variable from fixest estimate: 0.013087
p-value for language variable printed in modelsummary: 0.03491
Code is below. I made sure to install the latest development versions of modelsummary and fixest, but these didn't fix the issue. Apologies if I'm missing something. Any help would be appreciated.
library(modelsummary)
library(fixest)
library(carData)
d <- Greene
d$dv <- ifelse(Greene$decision == 'yes', 1, 0)
mod <- feglm(dv ~ language | judge,
data = d,
cluster = c('judge'), family = 'logit')
mod
modelsummary(mod, fmt = '%.5f', statistic = "{std.error} ({p.value})")
Very sorry the delay. Work has been crazy, then vacation, etc.
The problem is that modelsummary uses parameters to extract p values. parameters uses the t distribution and believes that this particular model has only 9 degrees of freedom (it has more). So we get overly conservative results.
fixest
estimate: 0.013087modelsummary
: 0.03491Code is below. I made sure to install the latest development versions of
modelsummary
andfixest
, but these didn't fix the issue. Apologies if I'm missing something. Any help would be appreciated.Originally posted by @knrob in #264 (comment)
The text was updated successfully, but these errors were encountered: