report
report copied to clipboard
svyglm
I may be missing it, but do you have svyglm model support? or any survey package models? Would be a great add!
We got survreg
support. Can you give a reproducible example for a svyglm model?
report
currently doesn't support it though. Only parameters
and performance
do.
# data
library(survey)
set.seed(123)
data(api)
dstrat <-
survey::svydesign(
id = ~1,
strata = ~stype,
weights = ~pw,
data = apistrat,
fpc = ~fpc
)
# model
mod_svyglm <-
survey::svyglm(
formula = sch.wide ~ ell + meals + mobility,
design = dstrat,
family = quasibinomial()
)
# report
library(report)
report(mod_svyglm)
#> Warning in logLik.svyglm(x, ...): svyglm not fitted by maximum likelihood.
#> Warning in logLik.svyglm(x): svyglm not fitted by maximum likelihood.
#> Error in UseMethod("format_value"): no applicable method for 'format_value' applied to an object of class "NULL"
Created on 2021-05-28 by the reprex package (v2.0.0)
(I said, survreg
not svyglm
)
My bad!
but do you have svyglm model support?
No, we currently don't support svyglm
. But, until that support is added, survreg
is an option.
Thanks!