Create a broom/generics-style tidy data frame with one row per model term.
# S3 method for spbp
tidy(
x,
conf.int = FALSE,
conf.level = 0.95,
exponentiate = FALSE,
component = c("coef", "baseline", "all"),
...
)A data.frame with columns term, estimate,
std.error, and when available statistic, p.value,
conf.low, conf.high. Columns that are entirely
NA are omitted.
A fitted "spbp" object.
Logical; include confidence/credible interval columns.
Interval coverage level.
Logical; if TRUE, exponentiate the estimate and
interval columns (regression coefficients only).
Which parameters to return: "coef" (default),
"baseline" (Bernstein gamma weights), or "all".
Currently unused.