sample_multinomial {TBFmultinomial} | R Documentation |
Samples from a PMP object
Description
This function samples from a specific model inside a PMP
object.
Usage
sample_multinomial(PMP_object, shrink = TRUE, data, which = "MPM",
discreteSurv = TRUE)
Arguments
PMP_object |
formula of the model including all potential variables |
shrink |
should the coefficients be shrunken towards their prior mean? |
data |
the (training) data frame with all the information |
which |
which model should be sampled from? either an integer, 'MPM' or 'MAP' |
discreteSurv |
Boolean variable telling us whether a 'simple' multinomial regression is looked for or if the goal is a discrete survival-time model for multiple modes of failure is needed. |
Value
returns an object with the model coefficients and supplementary information
Author(s)
Rachel Heyard
[Package TBFmultinomial version 0.1.3 Index]