sample_multinomial: Samples from a PMP object

Description Usage Arguments Value Author(s)

Description

This function samples from a specific model inside a PMP object.

Usage

1
2
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


TBFmultinomial documentation built on May 2, 2019, 2:11 p.m.