Learn R Programming

SurrogateOutcome (version 1.2)

resam: Resampling for standard error estimation

Description

Resamples data to obtain standard error estimates

Usage

resam(vv, t, t.0, tt, data, data1, data2, indexindex)

Value

A vector with the first value being the resampled estimate of the PTE, the second value being the resampled estimate of the optimal g2, and the remaining values being the resampled estimate of the optimal g1(s)

Arguments

vv

random exponential weight

t

number, the time of interest

t.0

landmark time of interest, \(t_0\)

tt

set of time points between t.0 and t

data

full dataset

data1

a random half from data

data2

the remaining random half from data

indexindex

the indices of data contained within data1

Author

Xuan Wang