View source: R/landest_functions.R

surv.land.obs.base | R Documentation |

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

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

`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 |

estimate of survival at the specified time

Layla Parast

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.