Learn R Programming

effectFusion (version 1.1.3)

Bayesian Effect Fusion for Categorical Predictors

Description

Variable selection and Bayesian effect fusion for categorical predictors in linear and logistic regression models. Effect fusion aims at the question which categories have a similar effect on the response and therefore can be fused to obtain a sparser representation of the model. Effect fusion and variable selection can be obtained either with a prior that has an interpretation as spike and slab prior on the level effect differences or with a sparse finite mixture prior on the level effects. The regression coefficients are estimated with a flat uninformative prior after model selection or by taking model averages. Posterior inference is accomplished by an MCMC sampling scheme which makes use of a data augmentation strategy (Polson, Scott & Windle (2013) ) based on latent Polya-Gamma random variables in the case of logistic regression. The code for data augmentation is taken from Polson et al. (2013) , who own the copyright.

Copy Link

Version

Install

install.packages('effectFusion')

Monthly Downloads

85

Version

1.1.3

License

GPL-3

Maintainer

Magdalena Leitner

Last Published

October 13th, 2021

Functions in effectFusion (1.1.3)

sim1

Simulated data set 1
dic

DIC
summary.fusion

Summary of object of class fusion
plot.fusion

Plot an object of class fusion
model

Selected model of a fusion object
effectFusion

Bayesian effect fusion for categorical predictors
sim2

Simulated data set 2
sim3

Simulated data set 3
print.fusion

Print object of class fusion