Learn R Programming

durmod (version 1.1-4)

mphdist: Extract the mixed proportional hazard distribution

Description

Various functions for extracting the proportional hazard distribution.

mphdist extracts the hazard distribution.

mphdist.log extracts the log hazard distribution.

mphmoments returns the first and second moments of the hazard distribution.

mphmoments.log returns the first and second moments of the log hazard distribution.

mphcov returns the variance/covariance matrix of the hazard distribution.

mphmedian returns the medians of the hazard distribution.

mphcov.log returns the variance/covariance matrix of the log hazard distribution.

Usage

mphdist(pset)

mphdist.log(pset)

mphmoments(pset)

mphmoments.log(pset)

mphcov(pset)

mphmedian(pset)

mphcov.log(pset)

Arguments

pset

a parameter set of class "mphcrm.pset", typically opt[[1]]$par, where opt is returned from mphcrm. If given a list of results, extracts the first in the list.

Value

A matrix.

Examples

Run this code
# NOT RUN {
# load a dataset and a precomputed fitted model
data(durdata)
best <- fit[[1]]
mphdist(best)
mphmoments(best)
mphcov.log(best)
# }

Run the code above in your browser using DataLab