model_priors function

Prior model probability

Prior model probability

This function computes the prior model probabilities of the candidate models

model_priors(fullModel, discreteSurv = TRUE, modelPrior = "flat")

Arguments

  • fullModel: formula of the model including all potential variables
  • discreteSurv: Boolean var 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.
  • modelPrior: what prior should be used on the model space? modelPrior should be included in {'flat','dependent'} where 'flat' means a uniform pior and 'dependent' sets a multiplicity-corrected model prior on the model space.

Returns

a numerical vector with the prior model probabilities

Examples

# the definition of the full model with three potential predictors: FULL <- outcome ~ ns(day, df = 4) + gender + type + SOFA # here we define time as a spline with 3 knots priors <- model_priors(fullModel = FULL, discreteSurv = TRUE, modelPrior = 'dependent')

Author(s)

Rachel Heyard

  • Maintainer: Rachel Heyard
  • License: GPL (>= 2)
  • Last published: 2018-10-12

Useful links