summ.svyglm | R Documentation |
summ()
prints output for a regression model in a fashion similar to
summary()
, but formatted differently with more options.
## S3 method for class 'svyglm'
summ(
model,
scale = FALSE,
confint = getOption("summ-confint", FALSE),
ci.width = getOption("summ-ci.width", 0.95),
digits = getOption("jtools-digits", default = 2),
pvals = getOption("summ-pvals", TRUE),
n.sd = 1,
center = FALSE,
transform.response = FALSE,
scale.only = FALSE,
exp = FALSE,
vifs = getOption("summ-vifs", FALSE),
model.info = getOption("summ-model.info", TRUE),
model.fit = getOption("summ-model.fit", TRUE),
model.coefs = getOption("summ-model.coefs", TRUE),
which.cols = NULL,
...
)
model |
A |
scale |
If |
confint |
Show confidence intervals instead of standard errors? Default
is |
ci.width |
A number between 0 and 1 that signifies the width of the
desired confidence interval. Default is |
digits |
An integer specifying the number of digits past the decimal to
report in the output. Default is 2. You can change the default number of
digits for all jtools functions with
|
pvals |
Show p values? If |
n.sd |
If |
center |
If you want coefficients for mean-centered variables but don't
want to standardize, set this to |
transform.response |
Should scaling/centering apply to response
variable? Default is |
scale.only |
If you want to scale but not center, set this to |
exp |
If |
vifs |
If |
model.info |
Toggles printing of basic information on sample size, name of DV, and number of predictors. |
model.fit |
Toggles printing of model fit statistics. |
model.coefs |
Toggles printing of model coefficents. |
which.cols |
Developmental feature. By providing columns by name, you can add/remove/reorder requested columns in the output. Not fully supported, for now. |
... |
Among other things, arguments are passed to |
By default, this function will print the following items to the console:
The sample size
The name of the outcome variable
The (Pseudo-)R-squared value and AIC.
A table with regression coefficients, standard errors, t values, and p values.
The scale
and center
options are performed via refitting
the model with scale_mod()
and center_mod()
,
respectively. Each of those in turn uses gscale()
for the
mean-centering and scaling. These functions can handle svyglm
objects
correctly by calling svymean()
and svyvar()
to compute means
and
standard deviations. Weights are not altered. The fact that the model is
refit means the runtime will be similar to the original time it took to fit
the model.
If saved, users can access most of the items that are returned in the output (and without rounding).
coeftable |
The outputted table of variables and coefficients |
model |
The model for which statistics are displayed. This would be
most useful in cases in which |
Much other information can be accessed as attributes.
Jacob Long jacob.long@sc.edu
scale_mod()
can simply perform the standardization if
preferred.
gscale()
does the heavy lifting for mean-centering and scaling
behind the scenes.
Other summ:
summ.glm()
,
summ.lm()
,
summ.merMod()
,
summ.rq()
if (requireNamespace("survey")) {
library(survey)
data(api)
dstrat <- svydesign(id = ~1, strata =~ stype, weights =~ pw,
data = apistrat, fpc =~ fpc)
regmodel <- svyglm(api00 ~ ell * meals, design = dstrat)
summ(regmodel)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.