| polyreg-methods | R Documentation |
S3 methods to extract coefficients, variance-covariance matrix,
sample size, formatted summaries, and tidy/glance/augment
from objects returned by polyreg().
## S3 method for class 'polyreg'
coef(object, ...)
## S3 method for class 'polyreg'
vcov(
object,
type = c("default", "sandwich", "bootstrap"),
variance = NULL,
...
)
## S3 method for class 'polyreg'
nobs(object, ...)
## S3 method for class 'polyreg'
summary(object, ...)
## S3 method for class 'summary.polyreg'
print(x, digits = 3, ...)
effect_label.polyreg(
x,
event = c("event1", "event2"),
add.time.point = TRUE,
add.outcome = TRUE,
add.exposure.levels = TRUE,
add.conf = TRUE,
add.p = TRUE,
value.time = NULL,
unit.time = NULL,
digits = 2,
p_digits = 2,
p_cut = 0.05,
...
)
## S3 method for class 'polyreg'
tidy(
x,
event = c("event1", "event2", "both"),
conf.int = x$conf.int,
variance = NULL,
exponentiate = FALSE,
conf.level = NULL,
...,
vcov = NULL,
coef_rename = FALSE
)
## S3 method for class 'polyreg'
glance(x, event = c("event1", "event2"), ..., gof_map = NULL)
## S3 method for class 'polyreg'
augment(x, ...)
## S3 method for class 'polyreg'
tbl_regression(x, ..., event = c("event1", "event2"))
object |
A polyreg object returned by |
... |
Further arguments passed to or from methods. |
type |
Character string; one of |
variance |
Explicit covariance choice, |
x |
Object to be printed or summarised. Typically a
|
digits |
Number of digits to print for parameter estimates
or effect measures. Used by |
event |
Character string indicating which event to extract.
For |
add.time.point |
Logical; if |
add.outcome |
Logical; if |
add.exposure.levels |
Logical; if |
add.conf |
Logical; if |
add.p |
Logical; if |
value.time |
Optional numeric value overriding the time point
stored in the |
unit.time |
Optional character string giving the time unit
to display in labels constructed by |
p_digits |
Integer; number of digits used to format p-values
in |
p_cut |
Numeric threshold used by |
conf.int |
Numeric interval level for |
exponentiate |
Logical; exponentiate effect estimates and confidence limits for reporting. Standard errors and statistics stay on the log scale. |
conf.level |
Optional confidence level for the broom-compatible
logical |
vcov |
Compatibility argument for |
coef_rename |
Compatibility argument for |
gof_map |
Table formatting argument forwarded by |
coef.polyreg() returns a numeric vector of regression
coefficients.
vcov.polyreg() returns a variance-covariance matrix.
nobs.polyreg() returns the number of observations.
summary.polyreg() returns a list of tidy and glance
summaries by event.
print.summary.polyreg() is called for its side effect
of printing a formatted, modelsummary-like table to the
console and returns x invisibly.
tidy.polyreg() returns a data frame of tidy coefficients
by event.
glance.polyreg() returns a data frame of model-level
summaries by event.
augment.polyreg() returns an augmented data frame
containing diagnostics, weights, and predicted CIFs.
polyreg() for log odds product modeling of CIFs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.