Learn R Programming

PHInfiniteEstimates (version 2.9.5)

convertstoml: Convert a proportional hazards regression to a multinomial regression.

Description

Convert a proportional hazards regression to a multinomial regression.

Usage

convertstoml(survobj, covmat)

Value

a data set on which to apply conditional multinomial regression, corresponding to the proportional hazards regression analysis. In order to run the line commented out below, you would need this: # @importFrom mlogit mlogit.data

Arguments

survobj

A survival object, with potentially right censoring.

covmat

a matrix of covariates.

Details

Implements version of kz19PHInfiniteEstimates. The proportional hazards regression is converted to a multinomial regression logistic regression, and methods of kolassa16PHInfiniteEstimates may be applied. This function is intended to produce intermediate results to be passed to convertmtol, and then to reduceLR of kolassa97PHInfiniteEstimates. See examples in the convertmtol documentation.

References

kolassa97PHInfiniteEstimates

kolassa16PHInfiniteEstimates

kz19PHInfiniteEstimates