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

View source: R/convertstoml.R

convertstomlR Documentation

Convert a proportional hazards regression to a multinomial regression.

Description

Convert a proportional hazards regression to a multinomial regression.

Usage

convertstoml(survobj, covmat)

Arguments

survobj

A survival object, with potentially right censoring.

covmat

a matrix of covariates.

Details

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

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

References

\insertRef

kolassa97PHInfiniteEstimates

\insertRef

kolassa16PHInfiniteEstimates

\insertRef

kz19PHInfiniteEstimates


PHInfiniteEstimates documentation built on Nov. 24, 2023, 9:06 a.m.