Learn R Programming

PWEALL (version 1.3.0.1)

wlrutil: A utility function to calculate some common functions in contructing weights

Description

A utility function to calculate some common functions in contructing weights

Usage

wlrutil(y=c(1,2,3),d=c(1,0,1),z=c(1,0,0),te=c(1,3),eps=1.0e-08)

Value

mfunc

various functions in column

Arguments

y

observed times

d

non-censoring indicators

z

group indicators with z=1 treatment and z=0 control

te

(ascendingly) ordered unique event times from both groups

eps

tolerence when comparing event times

Author

Xiaodong Luo

Details

More details

Examples

Run this code
ww<-wlrutil(y=c(1,2,3),d=c(1,0,1),z=c(1,0,0),te=c(1,3),eps=1.0e-08)
ww

Run the code above in your browser using DataLab