lstats_boots: L-Statistics for binary and time-to-event outcomes (bootstrap...

Description Usage Arguments Value Author(s)

View source: R/lstats_boots-functions.R

Description

performs a L-statistic for right-censored and binary data (bootstrap variance estimator).

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
lstats_boots(
  time,
  status,
  binary,
  treat,
  tau,
  rho = 0,
  gam = 0,
  eta = 1,
  wb = 0.5,
  ws = 0.5,
  Boot = 50
)

Arguments

time

The observed time.

status

The status indicator, normally 0=alive, 1=dead.

binary

0=nonresponse, 1=response.

treat

The treatment-group indicator, normally 0=control, 1=intervention.

tau

follow-up. Default NULL denoting the last time in which both groups had patients at risk.

rho

A scalar parameter that controls the type of test (see Weights).

gam

A scalar parameter that controls the type of test (see Weights).

eta

A scalar parameter that controls the type of test (see Weights).

wb

A scalar parameter that controls the type of test (see Weights).

ws

A scalar parameter that controls the type of test (see Weights).

Boot

number of bootstrap samples (default Boot=50).

Value

List: standardized statistic, statistic and variance.

Author(s)

Marta Bofill Roig


MartaBofillRoig/SurvBin documentation built on Sept. 29, 2021, 5:18 p.m.