surv: Print fitted Survival and Hazard Probabilites of a DStree...

Description Usage Arguments Value Examples

View source: R/surv.DStree.R

Description

This function prints the fitted survival and hazard probabilities of every terminal node of a DStree object.

Usage

1
surv(object)

Arguments

object

fitted model object of class "DStree". This is assumed to be the result of some function that produces an object with the same named components as that returened by the DStree function.

Value

Two matrices containing Survival and Hazard probabilities, where each row denotes fitted probabilities in the respective terminal leaves. The first column refers to the probability of the first observed timepoint, the second column to the second timepoint, etc.

Examples

1
2
3
4
5
# Grow tree
tree <- DStree(spell~ui+age,status="censor1",data=UnempDur)

# Print fitted probabilites
surv(tree)

DStree documentation built on May 2, 2019, 3:37 p.m.

Related to surv in DStree...