I have a few cox models created by coxph
, and I want to summarise them with modelsummary
. However, when I write robust=T
in coxph
script, and run modelsummary
like below, I get an error message which says "Error in get_vcov.default(model, vcov = vcov, conf_level = conf_level, :
Unable to extract a variance-covariance matrix of type robust from model of class coxph. The variance-covariance matrix is required to adjust the standard errors. The vcov
argument accepts a variance-covariance matrix, a vector of standard errors, or a function that returns one of these, such as stats::vcov
."
modelsummary(models,
stars=T,
vcov = 'robust'
)
Also, when I use vcov = 'classical'
, I get the table but the stars disappear. They appear just when I write robust=F
in my coxph
script.
How can I use robust=T
in coxph
script and vcov = 'robust'
in modelsummary together?