mcSample: Sample Predictor Distributions

Description Usage Arguments Details Examples

View source: R/gibbs.R

Description

Uses fitted BBL model to explore predictor distributions

Usage

1
mcSample(object, nsteps = 1000, verbose = 1, progress.bar = TRUE)

Arguments

object

Object of class bbl

nsteps

Total number of MC steps

verbose

Verbosity level of output

progress.bar

Display progress bar

Details

After bbl fit, the resulting model is used by this function to sample predictor distributions in each response group and find the most likely preditor set using MCMC.

Examples

1
2
3
4
titanic <- as.data.frame(Titanic)
b <- bbl(Survived~., data=titanic[,1:4], weights=titanic$Freq)
pxy <- mcSample(b)
pxy

bbl documentation built on Jan. 28, 2022, 1:07 a.m.