surv.land.obs.base: Estimates survival using landmark estimation

View source: R/landest_functions.R

surv.land.obs.baseR Documentation

Estimates survival using landmark estimation

Description

Estimates the probability of survival past some specified time using landmark estimation for an observational study setting

Usage

surv.land.obs.base(tl, dl, tt, landmark, short = NULL, z.cov = NULL, 
ps.weights, weight.perturb = NULL, perturb.ps = FALSE, bw = NULL)

Arguments

tl

observed event time of primary outcome, equal to min(T, C) where T is the event time and C is the censoring time.

dl

event indicator, equal to I(T<C) where T is the event time and C is the censoring time.

tt

the time of interest, function estimates the probability of survival past this time

landmark

the landmark time

short

a matrix of intermediate event information, there should be two columns for each intermediate event, the first column contains the observed intermediate event time, equal to min(TS, C) where TS is the event time and C is the censoring time, and the second column contains the event indicator, equal to I(TS<C)

z.cov

matrix of baseline covariate information

ps.weights

propensity score (or inverse probability of treatment) weights

weight.perturb

a n by x matrix of weights where n = length of tl; used for perturbation-resampling, default is null. If var or conf.int is TRUE and weight.perturb is not provided, the function generates exponential(1) weights.

perturb.ps

TRUE or FALSE indicating whether the weight.perturb matrix includes the perturbed propensity score (or inverse probability of treatment) weights

bw

bandwidth used for kernel estimation, default is NULL

Value

estimate of survival at the specified time

Author(s)

Layla Parast


landest documentation built on Aug. 26, 2023, 1:08 a.m.