predict.cpf: Conditional Probability Estimates at chosen timepoints

Description Usage Arguments Value Author(s) See Also Examples

View source: R/predict.cpf.R

Description

This function displays estimates of the conditional probability function at timepoints chosen by the user

Usage

1
2
## S3 method for class 'cpf'
predict(object, timepoints, ...)

Arguments

object

An object of class cpf

timepoints

Vector of timepoints

...

Not used

Value

A data.frame with the following columns

time

The given timepoints

cp

Conditional probability estimates

var

Variance estimates

lower

Lower confidence limit

upper

Upper confidence limit

n.risk

Number of individuals at risk just before the timepoints

group

Group, if any

Author(s)

Arthur Allgnol, arthur.allignol@uni-ulm.de

See Also

cpf

Examples

1
2
3
4
5
6
data(mgus)
mgus$A <- ifelse(mgus$age < 64, 0, 1)

test <- cpf(Hist(time, ev)~A, data = mgus)

predict(test, c(10, 20))

Cprob documentation built on May 19, 2017, 11:06 a.m.

Search within the Cprob package
Search all R packages, documentation and source code