This function computes the TBF as well as g
TBF(ingredients = NULL, fullModel = NULL, method = "LEB", data = NULL,
discreteSurv = TRUE, prior = NULL, package = "nnet", maxit = 150)TBF_ingredients_object ingredients for the TBF
(and g) calculation.
if ingredients is NULL, formula of the model
including all potential variables
tells us which method for the definition of g should be
used. Possibilities are: LEB, GEB, g=n, hyperG,
ZS, ZSadapted and hyperGN
the data frame with all the information. Only needed if
ingredients is NULL
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.
should a dependent or a flat prior be used on the model space?
Only needed if method = `GEB`.
Which package should be used to fit the models; by default
the nnet package is used; we could also specify to use the package
'VGAM'
Only needs to be specified with package nnet: maximal
number of iterations
A list with the TBF and the g (if it is fixed) for all the candidate models.