Learn R Programming

GNGTools (version 1.0.0)

get.tte.post.df: Get posterior parameters for two-sample time to event case using normal approximation to log(HR) - data.frame

Description

Returns the parameters of the posterior distribution in the case of normal approximation to hazard ratio - this version does not expand grid

Usage

get.tte.post.df(
  m.con.prior = 10,
  m.trt.prior = 10,
  HR.prior = 0.7,
  ARatio = 1,
  HR.obs = 0.8,
  m.obs = 50
)

Value

a data.frame is returned

Arguments

m.con.prior

prior number of events on control

m.trt.prior

prior number of events on treatment

HR.prior

Prior Hazard ratio

ARatio

Randomization ratio in current trial

HR.obs

Observed HR in current trial

m.obs

Total events in current trail

Examples

Run this code
my.tte.post.df <- get.tte.post.df()
head(my.tte.post.df)

Run the code above in your browser using DataLab