bParEstimate: Blinded Parameter Estimation

Description Usage Arguments Value Examples

View source: R/bParEstimate.R

Description

Performs a blinded parameter estimation.

Usage

1
bParEstimate(dfSurv, theta, k)

Arguments

dfSurv

a data.frame containing the variables:

  • status: (0,1) := (no event, event)

  • time: time to status

  • group: grouping variable with two levels

theta

a number defining the assumed hazard ratio.

k

a number defining the balance between the two groups. If not supplied it is calculated from the data.

Value

a data.frame containing the overall event rate as well as the event rates per group.

Examples

1
2
3
N <- matrix(rep(50,20),ncol=2)
df.sim <- simSurvData(N=N, lambda=-log(.7)/24, theta=.7, gamma=-log(.3)/24, distS="exponential",distC="exponential", L=20)
bParEstimate(dfSurv=df.sim, theta=.7, k=1)

Knusprikus/BSSRed documentation built on July 6, 2020, 11:02 p.m.