Learn R Programming

GNGTools (version 1.0.0)

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

Description

Returns the parameters of the posterior distribution in the case of normal approximation to hazard ratio

Usage

get.tte.post(
  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 <- get.tte.post()
my.tte.post

Run the code above in your browser using DataLab