convertstoml | R Documentation |
Convert a proportional hazards regression to a multinomial regression.
convertstoml(survobj, covmat)
survobj |
A survival object, with potentially right censoring. |
covmat |
a matrix of covariates. |
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.
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
kolassa97PHInfiniteEstimates
\insertRefkolassa16PHInfiniteEstimates
\insertRefkz19PHInfiniteEstimates
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.