bfp0.0-49 package

Bayesian Fractional Polynomials

getPosteriorParms

Extract updated posterior parameters for the normal inverse gamma dist...

getPostExpectedgAndShrinkage

Extract posterior expected g and shrinkage factor (g/(1+g)) from a mod...

inclusionProbs

Compute (model averaged) posterior variable inclusion probabilites

invGamma

Functions for the inverse gamma distribution.

plotCurveEstimate

Generic function for plotting a fractional polynomial curve estimate

posteriors

Extract posterior model probability estimates from BayesMfp objects

predict.BayesMfp

Predict method for BayesMfp objects

predict.BmaSamples

Predict method to extract point and interval predictions from BmaSampl...

rmvt

Multivariate Student Random Deviates

rshrinkage

Sample from the model-specific posterior of the shrinkage factor t = g...

scrBesag

Simultaneous credible band computation (Besag, Green et al algorithm)

as.data.frame.BayesMfp

Convert a BayesMfp object to a data frame

BayesMfp

Bayesian model inference for multiple fractional polynomial models

BayesMfpMethods

Other methods for BayesMfp objects

bmaPredict

BMA prediction for new data points

BmaSamples

Bayesian model averaging over multiple fractional polynomial models

BmaSamplesMethods

Other methods for BmaSamples objects

constructNewdataMatrix

Construct the model matrix for new data based on an existing BayesMfp ...

empiricalHpd

Construct an empirical HPD interval from samples

Extract.BayesMfp

Extract method for BayesMfp objects

findModel

Find a specific fractional polynomial model in a BayesMfp object

fpScale

Internal function for shifting and rescaling a fractional polynomial c...

getDesignMatrix

Extract the design matrix of a multiple FP model.

getFpTransforms

Internal functions to handle FP transforms.

getLogMargLik

Extract log marginal likelihood from a model.

getLogPrior

Extract the log prior probability from a model.

scrHpd

Calculate an SCB from a samples matrix

summary.BayesMfp

Calculate and print the summary of a BayesMfp object

summary.BmaSamples

Calculate and print the summary of a BmaSamples object

transformMfp

Transform a fitted mfp model into a BayesMfp model

Implements the Bayesian paradigm for fractional polynomial models under the assumption of normally distributed error terms, see Sabanes Bove, D. and Held, L. (2011) <doi:10.1007/s11222-010-9170-7>.

  • Maintainer: Daniel Sabanes Bove
  • License: GPL (>= 2)
  • Last published: 2025-03-30