Description Usage Arguments Value Author(s)
This function samples from a specific model inside a PMP
object.
1 2 | sample_multinomial(PMP_object, shrink = TRUE, data, which = "MPM",
discreteSurv = TRUE)
|
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. |
returns an object with the model coefficients and supplementary information
Rachel Heyard
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.