get_pwe_contrasts: Utility function to extract HR estimates from piece-wise...

Description Usage Arguments Value

Description

Utility function to extract HR estimates from piece-wise exponential model fit in (format needed for ggplot)

Usage

1
2
3
get_pwe_contrasts(fit, treatments, cut.pts, ref = "Atezolizumab+Bevacizumab",
  reverse = FALSE, exponentiate = TRUE, xmax = 24, digits = 3,
  alpha = 0.05)

Arguments

fit

rjags object which is the return of R2jags::jags()

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.

Value

A data.frame contatining hazzard ratio estimates from an rjags object which is the return of R2jags::jags()


bashlee/test documentation built on June 22, 2019, 12:42 a.m.