pi.pred: Based on the output obtained by applying ipw.pi.competing...

Description Usage Arguments Value Author(s) References

View source: R/pi.predict.R

Description

Based on the output obtained by applying ipw.pi.competing function to data, pi.predict function calculates predicted prevalence by using the inverse function of logit function, cumulative sub-distribution hazards and cumulative incidences for events 1 and 2.

Usage

1
pi.pred(input, p.mat, i.mat1, i.mat2, time.points)

Arguments

input

the output obtained from ipw.pi.competing

p.mat

design matrix for predicting prevalence by using the inverse of logit function; both of vector and matrix types are allowed; the first component or column should include 1 for the intercept.

i.mat1

design matrix for predicting cumulative sub-distribution hazards and cumulative incidences for event 1

i.mat2

design matrix for predicting cumulative sub-distribution hazards and cumulative incidences for event 2

time.points

time points at which cumulative sub-distribution hazards and cumulative incidences for events 1 and 2 are predicted

Value

The output is a list of class pi.predict, which contains the following elements.

Author(s)

Noorie Hyun, nhyun@mcw.edu, Xiao Li xiaoli@mcw.edu

References


xiaoli-mcw/PIcompete documentation built on May 20, 2020, 7:44 p.m.