Learn R Programming

bayesm (version 3.1-6)

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 first edition 2005 and second forthcoming) and Bayesian Non- and Semi-Parametric Methods and Applications (Princeton U Press 2014).

Copy Link

Version

Install

install.packages('bayesm')

Monthly Downloads

9,242

Version

3.1-6

License

GPL (>= 2)

Maintainer

Last Published

September 23rd, 2023

Functions in bayesm (3.1-6)

lndMvn

Compute Log of Multivariate Normal Density
llmnp

Evaluate Log Likelihood for Multinomial Probit Model
lndIWishart

Compute Log of Inverted Wishart Density
llmnl

Evaluate Log Likelihood for Multinomial Logit Model
lndIChisq

Compute Log of Inverted Chi-Squared Density
llnhlogit

Evaluate Log Likelihood for non-homothetic Logit Model
lndMvst

Compute Log of Multivariate Student-t Density
eMixMargDen

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

Physician Detailing Data
ghkvec

Compute GHK approximation to Multivariate Normal Integrals
mnpProb

Compute MNP Probabilities
numEff

Compute Numerical Standard Error and Relative Numerical Efficiency
logMargDenNR

Compute Log Marginal Density Using Newton-Raftery Approx
margarine

Household Panel Data on Margarine Purchases
orangeJuice

Store-level Panel Data on Orange Juice Sales
momMix

Compute Posterior Expectation of Normal Mixture Model Moments
nmat

Convert Covariance Matrix to a Correlation Matrix
mixDen

Compute Marginal Density for Multivariate Normal Mixture
mixDenBi

Compute Bivariate Marginal Density for a Normal Mixture
mnlHess

Computes --Expected Hessian for Multinomial Logit
rhierLinearMixture

Gibbs Sampler for Hierarchical Linear Model with Mixture-of-Normals Heterogeneity
rhierBinLogit

MCMC Algorithm for Hierarchical Binary Logit
rbprobitGibbs

Gibbs Sampler (Albert and Chib) for Binary Probit
plot.bayesm.nmix

Plot Method for MCMC Draws of Normal Mixtures
rbayesBLP

Bayesian Analysis of Random Coefficient Logit Models Using Aggregate Data
rbiNormGibbs

Illustrate Bivariate Normal Gibbs Sampler
rDPGibbs

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

Plot Method for Hierarchical Model Coefs
rdirichlet

Draw From Dirichlet Distribution
plot.bayesm.mat

Plot Method for Arrays of MCMC Draws
rmnlIndepMetrop

MCMC Algorithm for Multinomial Logit Model
rmnpGibbs

Gibbs Sampler for Multinomial Probit
rhierMnlDP

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

Gibbs Sampler for Normal Mixtures w/o Error Checking
rivDP

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

MCMC Algorithm for Hierarchical Negative Binomial Regression
rivGibbs

Gibbs Sampler for Linear "IV" Model
rhierLinearModel

Gibbs Sampler for Hierarchical Linear Model with Normal Heterogeneity
rhierMnlRwMixture

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

Draw from Mixture of Normals
rmvpGibbs

Gibbs Sampler for Multivariate Probit
rtrun

Draw from Truncated Univariate Normal
rmultireg

Draw from the Posterior of a Multivariate Regression
rscaleUsage

MCMC Algorithm for Multivariate Ordinal Data with Scale Usage Heterogeneity
rordprobitGibbs

Gibbs Sampler for Ordered Probit
rsurGibbs

Gibbs Sampler for Seemingly Unrelated Regressions (SUR)
rnmixGibbs

Gibbs Sampler for Normal Mixtures
runireg

IID Sampler for Univariate Regression
rnegbinRw

MCMC Algorithm for Negative Binomial Regression
rmvst

Draw from Multivariate Student-t
tuna

Canned Tuna Sales Data
summary.bayesm.var

Summarize Draws of Var-Cov Matrices
summary.bayesm.nmix

Summarize Draws of Normal Mixture Components
summary.bayesm.mat

Summarize Mcmc Parameter Draws
runiregGibbs

Gibbs Sampler for Univariate Regression
rwishart

Draw from Wishart and Inverted Wishart Distribution
simnhlogit

Simulate from Non-homothetic Logit Model
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
condMom

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

Sliced Cheese Data
customerSat

Customer Satisfaction Data
breg

Posterior Draws from a Univariate Regression with Unit Error Variance
camera

Conjoint Survey Data for Digital Cameras
Scotch

Survey Data on Brands of Scotch Consumed
bank

Bank Card Conjoint Data