Learn R Programming

⚠️There's a newer version (3.1-6) of this package.Take me there.

bayesm (version 3.1-5)

Bayesian Inference for Marketing/Micro-Econometrics

Description

Covers many important models used in marketing and micro-econometrics applications. The package includes: Bayes Regression (univariate or multivariate dep var), Bayes Seemingly Unrelated Regression (SUR), Binary and Ordinal Probit, Multinomial Logit (MNL) and Multinomial Probit (MNP), Multivariate Probit, Negative Binomial (Poisson) Regression, Multivariate Mixtures of Normals (including clustering), Dirichlet Process Prior Density Estimation with normal base, Hierarchical Linear Models with normal prior and covariates, Hierarchical Linear Models with a mixture of normals prior and covariates, Hierarchical Multinomial Logits with a mixture of normals prior and covariates, Hierarchical Multinomial Logits with a Dirichlet Process prior and covariates, Hierarchical Negative Binomial Regression Models, Bayesian analysis of choice-based conjoint data, Bayesian treatment of linear instrumental variables models, Analysis of Multivariate Ordinal survey data with scale usage heterogeneity (as in Rossi et al, JASA (01)), Bayesian Analysis of Aggregate Random Coefficient Logit Models as in BLP (see Jiang, Manchanda, Rossi 2009) For further reference, consult our book, Bayesian Statistics and Marketing by Rossi, Allenby and McCulloch (Wiley 2005) and Bayesian Non- and Semi-Parametric Methods and Applications (Princeton U Press 2014).

Copy Link

Version

Install

install.packages('bayesm')

Monthly Downloads

10,495

Version

3.1-5

License

GPL (>= 2)

Maintainer

Peter Rossi

Last Published

December 2nd, 2022

Functions in bayesm (3.1-5)

customerSat

Customer Satisfaction Data
cheese

Sliced Cheese Data
cgetC

Obtain A List of Cut-offs for Scale Usage Problems
createX

Create X Matrix for Use in Multinomial Logit and Probit Routines
clusterMix

Cluster Observations Based on Indicator MCMC Draws
Scotch

Survey Data on Brands of Scotch Consumed
camera

Conjoint Survey Data for Digital Cameras
bank

Bank Card Conjoint Data
condMom

Computes Conditional Mean/Var of One Element of MVN given All Others
breg

Posterior Draws from a Univariate Regression with Unit Error Variance
detailing

Physician Detailing Data
lndIChisq

Compute Log of Inverted Chi-Squared Density
lndMvn

Compute Log of Multivariate Normal Density
lndIWishart

Compute Log of Inverted Wishart Density
eMixMargDen

Compute Marginal Densities of A Normal Mixture Averaged over MCMC Draws
ghkvec

Compute GHK approximation to Multivariate Normal Integrals
llmnl

Evaluate Log Likelihood for Multinomial Logit Model
logMargDenNR

Compute Log Marginal Density Using Newton-Raftery Approx
lndMvst

Compute Log of Multivariate Student-t Density
mnpProb

Compute MNP Probabilities
mnlHess

Computes --Expected Hessian for Multinomial Logit
mixDenBi

Compute Bivariate Marginal Density for a Normal Mixture
mixDen

Compute Marginal Density for Multivariate Normal Mixture
llmnp

Evaluate Log Likelihood for Multinomial Probit Model
llnhlogit

Evaluate Log Likelihood for non-homothetic Logit Model
momMix

Compute Posterior Expectation of Normal Mixture Model Moments
nmat

Convert Covariance Matrix to a Correlation Matrix
numEff

Compute Numerical Standard Error and Relative Numerical Efficiency
orangeJuice

Store-level Panel Data on Orange Juice Sales
margarine

Household Panel Data on Margarine Purchases
rbayesBLP

Bayesian Analysis of Random Coefficient Logit Models Using Aggregate Data
rhierLinearMixture

Gibbs Sampler for Hierarchical Linear Model with Mixture-of-Normals Heterogeneity
plot.bayesm.mat

Plot Method for Arrays of MCMC Draws
rhierBinLogit

MCMC Algorithm for Hierarchical Binary Logit
plot.bayesm.hcoef

Plot Method for Hierarchical Model Coefs
rbiNormGibbs

Illustrate Bivariate Normal Gibbs Sampler
rbprobitGibbs

Gibbs Sampler (Albert and Chib) for Binary Probit
rDPGibbs

Density Estimation with Dirichlet Process Prior and Normal Base
plot.bayesm.nmix

Plot Method for MCMC Draws of Normal Mixtures
rdirichlet

Draw From Dirichlet Distribution
rmixGibbs

Gibbs Sampler for Normal Mixtures w/o Error Checking
rhierLinearModel

Gibbs Sampler for Hierarchical Linear Model with Normal Heterogeneity
rhierNegbinRw

MCMC Algorithm for Hierarchical Negative Binomial Regression
rmnlIndepMetrop

MCMC Algorithm for Multinomial Logit Model
rivDP

Linear "IV" Model with DP Process Prior for Errors
rivGibbs

Gibbs Sampler for Linear "IV" Model
rhierMnlDP

MCMC Algorithm for Hierarchical Multinomial Logit with Dirichlet Process Prior Heterogeneity
rmnpGibbs

Gibbs Sampler for Multinomial Probit
rmixture

Draw from Mixture of Normals
rhierMnlRwMixture

MCMC Algorithm for Hierarchical Multinomial Logit with Mixture-of-Normals Heterogeneity
rscaleUsage

MCMC Algorithm for Multivariate Ordinal Data with Scale Usage Heterogeneity
rsurGibbs

Gibbs Sampler for Seemingly Unrelated Regressions (SUR)
rordprobitGibbs

Gibbs Sampler for Ordered Probit
rnmixGibbs

Gibbs Sampler for Normal Mixtures
rmultireg

Draw from the Posterior of a Multivariate Regression
runireg

IID Sampler for Univariate Regression
rtrun

Draw from Truncated Univariate Normal
rmvst

Draw from Multivariate Student-t
rwishart

Draw from Wishart and Inverted Wishart Distribution
simnhlogit

Simulate from Non-homothetic Logit Model
tuna

Canned Tuna Sales Data
rnegbinRw

MCMC Algorithm for Negative Binomial Regression
runiregGibbs

Gibbs Sampler for Univariate Regression
summary.bayesm.mat

Summarize Mcmc Parameter Draws
summary.bayesm.nmix

Summarize Draws of Normal Mixture Components
rmvpGibbs

Gibbs Sampler for Multivariate Probit
summary.bayesm.var

Summarize Draws of Var-Cov Matrices