Helper function for Prob2.k.t; should not be called directly.

1 | ```
prob2.single(K, W2i, Xi.long, tau, Di.short, Xi.short, Zi, t0, covariate.value)
``` |

`K` |
Kernel matrix. |

`W2i` |
inverse probability of censoring weights. |

`Xi.long` |
XL = min(TL, C) where TL is the time of the long term event, C is the censoring time. |

`tau` |
the residual survival time for which probabilities are calculated. Specifically, this function estimates the probability that the an individual has the event of interest before t0 + tau given the event has not yet occurred and the individual is still at risk at time t0. |

`Di.short` |
DS =1*(TS<C), where TS is the time of the short term event, C is the censoring time. |

`Xi.short` |
log(XS) = log(min(TS, C)) where TS is the time of the short term event, C is the censoring time. |

`Zi` |
covariate vector. |

`t0` |
landmark time. |

`covariate.value` |
specific covariate at which to estimate the conditional probability. |

returns estimated probability for values corresponding to the kernel matrix at the specified covariate value;

Layla Parast

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

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.