mphdist: Extract the mixed proportional hazard distribution

Description Usage Arguments Value Examples

View source: R/utils.R

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
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

1
2
3
4
5
6
# load a dataset and a precomputed fitted model
data(durdata)
best <- fit[[1]]
mphdist(best)
mphmoments(best)
mphcov.log(best)

durmod documentation built on March 31, 2020, 5:23 p.m.