estimatelogHR: simulating survival data under model...

Description Usage Arguments Value Examples

View source: R/estimatelogHR.R

Description

simulating survival data under model hazard_1(t)=hazard_0(t)*e^r.

Usage

1
estimatelogHR(r, lamda = 1, lamda_cen = 1, L = 2, E)

Arguments

r

True log hazard ratio

lamda

The event hazard rate for placebo

lamda_cen

The discontinuation hazard rate

L

The whole study duration of fixed study duration design

E

Event number of two groups combined

Value

A single value.

Examples

1
2
3
4
r0=log(0.7)
E0=Eventnum(alpha=0.05, beta=0.2, r=r0)
set.seed(123)
estimatelogHR(r=r0, lamda=1, lamda_cen=1, L=2, E=E0)

carolinewei/apsurvival documentation built on Nov. 4, 2019, 8:44 a.m.