Description Usage Arguments Value
Utility function to extract HR estimates from piece-wise exponential model fit in (format needed for ggplot)
1 2 3 | get_pwe_contrasts(fit, treatments, cut.pts, ref = "Atezolizumab+Bevacizumab",
reverse = FALSE, exponentiate = TRUE, xmax = 24, digits = 3,
alpha = 0.05)
|
fit |
|
treatments |
Vector of treatment names (character string) ordered according to array indexes in jags fit. |
cut.pts |
Numeric vector with cut points of piece-wise exponential model. |
ref |
Character string identifying reference treatment to use in calculating contrasts. |
reverse |
Logical, if TRUE (default) "ref vs others" is calculated (instead of "others vs ref"). |
exponentiate |
Logical, if TRUE (default) contrast estimates are exponentiated in output. |
A data.frame
contatining hazzard ratio estimates from an rjags
object which is the return of R2jags::jags()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.