sf {HCTDesign}R Documentation

Log rank test for non-inferiority trial

Description

Calculates the score function of the log rank test for non-inferiority trial

Usage

sf(event, status, delta0, group, experiment, control)

Arguments

event

event time vector from person level trial data.

status

numeric vector indicating the status of event from person level trial data.

delta0

Non-inferiority margin.

group

group string vector indicating the assignment of patients into control or experimental group.

experiment

name of experimental group as character string.

control

name of control group as character string.

Value

Returns the value of score statistic.

Author(s)

Tushar Patni, Yimei Li, Jianrong Wu, and Arzu Onar-Thomas.

Examples

time<-c(20,65,12,50,58,65,45,44)
event<-c(1,0,0,0,1,1,1,1)
group<-c(rep("exp",4),rep("cont",4))
gg<-sf(event=time,status=event,delta0=1.3,group=group,experiment="exp",control="cont")

[Package HCTDesign version 0.7.2 Index]