tidy.survival_ln_mixture | R Documentation |
These method tidy the estimates from survival_ln_mixture
fits into a summary.
## S3 method for class 'survival_ln_mixture'
tidy(
x,
effects = "fixed",
conf.int = FALSE,
conf.level = 0.9,
digits = NULL,
...
)
x |
Fitted model object (survival_ln_mixture). |
effects |
A character vector including one or more of |
conf.int |
If |
conf.level |
A number between 0 and 1 indicating the desired probability mass to include in the
intervals. Only used if |
digits |
How many significant digits should be displayed? |
... |
Not used. |
A data.frame
without rownames. When effects="fixed"
(the default), tidy.survival_ln_mixutre
returns one row for each coefficient for each component of the mixture with three columns:
term |
The name of the corresponding term in the model. |
estimate |
A point estimate of the coefficient (posterior median). |
std.error |
A standard error for the point estimate based on
|
Setting effects="auxiliary"
will select the precision and proportion of mixture components parameters.
require(survival)
lung$sex <- factor(lung$sex)
set.seed(1)
mod2 <- survival_ln_mixture(Surv(time, status == 2) ~ sex, lung)
tidy(mod2)
tidy(mod2, conf.int = TRUE)
tidy(mod2, effects = c("fixed", "auxiliary"), conf.int = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.