lambda.reg.bayes: Calculate shares using data from Bayesian regression model

View source: R/lambda.reg.bayes.R

lambda.reg.bayesR Documentation

Calculate shares using data from Bayesian regression model

Description

Calculates the population share of row members in selected columns

Usage

lambda.reg.bayes(object, columns, ret.mcmc = TRUE) 

Arguments

object

An R object of class eiRegBayes, the output from ei.reg.bayes

columns

a character vector indicating which column marginals to be included in calculating the shares

ret.mcmc

If TRUE, posterior shares are returned as an mcmc object.

Value

If ret.mcmc = TRUE, draws are returned as an mcmc object with dimensions sample x C. If ret.mcmc = FALSE, draws are returned as an array with dimensions R x C x samples array.

Author(s)

Ryan T. Moore <rtm@american.edu>

See Also

ei.reg.bayes


eiPack documentation built on March 7, 2023, 7:04 p.m.