[r-cran-bayesm] 34/44: Import Upstream version 2.2-3

Andreas Tille tille at debian.org
Thu Sep 7 11:16:23 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository r-cran-bayesm.

commit 0e075db19d9d7ae94116d50e4a90d1b6c373c8aa
Author: Andreas Tille <tille at debian.org>
Date:   Thu Sep 7 13:10:09 2017 +0200

    Import Upstream version 2.2-3
---
 DESCRIPTION                | 63 ++++++++++++++++++++++------------------------
 R/rhierLinearMixture.R     |  3 ++-
 R/rhierMnlRwMixture.R      |  3 ++-
 R/rivDP.R                  |  3 ++-
 R/rnmixGibbs.R             | 30 ++++++++++++++++++++--
 man/Scotch.Rd              |  2 +-
 man/bank.Rd                |  2 +-
 man/breg.Rd                |  6 ++---
 man/cgetC.Rd               |  2 +-
 man/cheese.Rd              |  2 +-
 man/clusterMix.Rd          |  4 +--
 man/condMom.Rd             |  6 ++---
 man/createX.Rd             |  6 ++---
 man/customerSat.Rd         |  2 +-
 man/eMixMargDen.Rd         |  6 ++---
 man/fsh.Rd                 |  4 +--
 man/ghkvec.Rd              |  6 ++---
 man/llmnl.Rd               |  6 ++---
 man/llmnp.Rd               |  6 ++---
 man/llnhlogit.Rd           |  6 ++---
 man/lndIChisq.Rd           |  6 ++---
 man/lndIWishart.Rd         |  6 ++---
 man/lndMvn.Rd              |  6 ++---
 man/lndMvst.Rd             |  6 ++---
 man/logMargDenNR.Rd        |  6 ++---
 man/margarine.Rd           |  2 +-
 man/mixDen.Rd              |  6 ++---
 man/mixDenBi.Rd            |  6 ++---
 man/mnlHess.Rd             |  6 ++---
 man/mnpProb.Rd             |  6 ++---
 man/momMix.Rd              |  6 ++---
 man/nmat.Rd                |  4 +--
 man/numEff.Rd              |  6 ++---
 man/orangeJuice.Rd         |  2 +-
 man/plot.bayesm.hcoef.Rd   |  4 +--
 man/plot.bayesm.mat.Rd     |  4 +--
 man/plot.bayesm.nmix.Rd    |  4 +--
 man/rDPGibbs.Rd            |  6 ++---
 man/rbiNormGibbs.Rd        |  6 ++---
 man/rbprobitGibbs.Rd       |  6 ++---
 man/rdirichlet.Rd          |  6 ++---
 man/rhierBinLogit.Rd       |  6 ++---
 man/rhierLinearMixture.Rd  | 20 ++++++++-------
 man/rhierLinearModel.Rd    |  6 ++---
 man/rhierMnlDP.Rd          |  6 ++---
 man/rhierMnlRwMixture.Rd   |  6 ++---
 man/rhierNegbinRw.Rd       |  6 ++---
 man/rivDP.Rd               |  4 +--
 man/rivGibbs.Rd            |  6 ++---
 man/rmixGibbs.Rd           |  6 ++---
 man/rmixture.Rd            |  4 +--
 man/rmnlIndepMetrop.Rd     |  6 ++---
 man/rmnpGibbs.Rd           |  6 ++---
 man/rmultireg.Rd           |  6 ++---
 man/rmvpGibbs.Rd           |  6 ++---
 man/rmvst.Rd               |  6 ++---
 man/rnegbinRw.Rd           |  6 ++---
 man/rnmixGibbs.Rd          | 16 +++++++-----
 man/rordprobitGibbs.Rd     |  6 ++---
 man/rscaleUsage.Rd         |  6 ++---
 man/rsurGibbs.Rd           |  8 +++---
 man/rtrun.Rd               |  6 ++---
 man/runireg.Rd             |  6 ++---
 man/runiregGibbs.Rd        |  6 ++---
 man/rwishart.Rd            |  6 ++---
 man/simnhlogit.Rd          |  6 ++---
 man/summary.bayesm.mat.Rd  |  4 +--
 man/summary.bayesm.nmix.Rd |  8 +++---
 man/summary.bayesm.var.Rd  |  4 +--
 man/tuna.Rd                |  2 +-
 70 files changed, 251 insertions(+), 217 deletions(-)

diff --git a/DESCRIPTION b/DESCRIPTION
index 61f5ba3..201f1d2 100755
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,35 +1,32 @@
 Package: bayesm
-Version: 2.2-2
-Date: 2008-06-05
-Title:Bayesian Inference for Marketing/Micro-econometrics 
-Author: Peter Rossi <peter.rossi at ChicagoGsb.edu>, 
-        Rob McCulloch <robert.mcculloch at ChicagoGsb.edu>.
-Maintainer: Peter Rossi <peter.rossi at chicagosb.edu>
+Version: 2.2-3
+Date: 2010-08-11
+Title: Bayesian Inference for Marketing/Micro-econometrics
+Author: Peter Rossi <perossi at gmail.com>.
+Maintainer: Peter Rossi <perossichi at gmail.com>
 Depends: R (>= 2.5.1)
-Description: bayesm 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,
-  and
-  Analyis of Multivariate Ordinal survey data with scale
-     usage heterogeneity (as in Rossi et al, JASA (01)).
-  For further reference, consult our book, Bayesian Statistics and
-  Marketing by Rossi, Allenby and McCulloch. 
-License: GPL (version 2 or later)
-URL: http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html
-Packaged: Mon Jun  9 08:59:32 2008; hornik
+Description: bayesm 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, and Analysis of Multivariate
+        Ordinal survey data with scale usage heterogeneity (as in Rossi
+        et al, JASA (01)). For further reference, consult our book,
+        Bayesian Statistics and Marketing by Rossi, Allenby and
+        McCulloch.
+License: GPL (>= 2)
+URL: http://www.perossi.org/home/bsm-1
+Packaged: 2010-08-11 19:29:22 UTC; perossichi
+Repository: CRAN
+Date/Publication: 2010-08-11 20:01:11
diff --git a/R/rhierLinearMixture.R b/R/rhierLinearMixture.R
index e024a19..3c5f91e 100755
--- a/R/rhierLinearMixture.R
+++ b/R/rhierLinearMixture.R
@@ -7,6 +7,7 @@ function(Data,Prior,Mcmc)
 #   in a mixture component
 #   adapted to linear model by Vicky Chen 6/06
 #   put in classes 3/07
+#   changed a check 9/08
 #
 # purpose: run hierarchical linear model with mixture of normals 
 #
@@ -185,7 +186,7 @@ if(is.null(Prior$deltabar)& drawdelta) {deltabar=rep(0,nz*nvar)} else {deltabar=
 if(is.null(Prior$a)) { a=rep(5,ncomp)} else {a=Prior$a}
 if(length(a) != ncomp) {pandterm("Requires dim(a)= ncomp (no of components)")}
 bada=FALSE
-   for(i in 1:ncomp) { if(a[i] < 1) bada=TRUE}
+   for(i in 1:ncomp) { if(a[i] < 0) bada=TRUE}
   if(bada) pandterm("invalid values in a vector")
 #
 # check on Mcmc
diff --git a/R/rhierMnlRwMixture.R b/R/rhierMnlRwMixture.R
index 062346e..025eb25 100755
--- a/R/rhierMnlRwMixture.R
+++ b/R/rhierMnlRwMixture.R
@@ -8,6 +8,7 @@ function(Data,Prior,Mcmc)
 #   added loglike output, changed to reflect new argument order in llmnl, mnlHess 9/05
 #   changed weighting scheme to (1-w)logl_i + w*Lbar (normalized) 12/05
 #   3/07 added classes
+#   9/08 changed Dirichlet a check
 #
 # purpose: run hierarchical mnl logit model with mixture of normals 
 #   using RW and cov(RW inc) = (hess_i + Vbeta^-1)^-1
@@ -127,7 +128,7 @@ if(is.null(Prior$deltabar)& drawdelta) {deltabar=rep(0,nz*nvar)} else {deltabar=
 if(is.null(Prior$a)) { a=rep(5,ncomp)} else {a=Prior$a}
 if(length(a) != ncomp) {pandterm("Requires dim(a)= ncomp (no of components)")}
 bada=FALSE
-   for(i in 1:ncomp) { if(a[i] < 1) bada=TRUE}
+   for(i in 1:ncomp) { if(a[i] < 0) bada=TRUE}
   if(bada) pandterm("invalid values in a vector")
 #
 # check on Mcmc
diff --git a/R/rivDP.R b/R/rivDP.R
index 5eae594..8a7dfee 100755
--- a/R/rivDP.R
+++ b/R/rivDP.R
@@ -7,6 +7,7 @@ function(Data,Prior,Mcmc)
 #   added draw of alpha 2/06
 #   added automatic scaling 2/06
 #   removed reqfun  7/07 -- now functions are in rthetaDP
+#   fixed initialization of theta 3/09
 #
 # purpose: 
 #   draw from posterior for linear I.V. model with DP process for errors
@@ -144,7 +145,7 @@ else
    {lmxz = lm(x~z,data.frame(x=x,z=z))
     delta = lmxz$coef[2:(ncol(z)+1)]}
 if(!is.null(Mcmc$theta))
-  {theta=Mcmc$delta }
+  {theta=Mcmc$theta }
 else
   {onecomp=list(mu=c(0,0),rooti=diag(2))
    theta=vector("list",length(y))
diff --git a/R/rnmixGibbs.R b/R/rnmixGibbs.R
index e1fbf0b..add5a6a 100755
--- a/R/rnmixGibbs.R
+++ b/R/rnmixGibbs.R
@@ -8,6 +8,7 @@ function(Data,Prior,Mcmc)
 #   fixed bug in saving comps draw comps[[mkeep]]=  9/05
 #   fixed so that ncomp can be =1; added check that nobs >= 2*ncomp   12/06
 #   3/07 added classes
+#   added log-likelihood  9/08
 #
 # purpose: do Gibbs sampling inference for a mixture of multivariate normals
 #
@@ -42,6 +43,21 @@ function(Data,Prior,Mcmc)
 #  check arguments
 #
 pandterm=function(message) {stop(message,call.=FALSE)}
+#
+# -----------------------------------------------------------------------------------------
+llnmix=function(Y,z,comps){
+#
+# evaluate likelihood for mixture of normals
+#
+zu=unique(z)
+ll=0.0
+for(i in 1:length(zu)){
+    Ysel=Y[z==zu[i],,drop=FALSE]
+    ll=ll+sum(apply(Ysel,1,lndMvn,mu=comps[[zu[i]]]$mu,rooti=comps[[zu[i]]]$rooti))
+}
+return(ll)
+}
+# -----------------------------------------------------------------------------------------
 if(missing(Data)) {pandterm("Requires Data argument -- list of y")}
     if(is.null(Data$y)) {pandterm("Requires Data element y")}
     y=Data$y
@@ -88,15 +104,20 @@ if(ncol(V) != nrow(V) || ncol(V) != dimy)
    {pandterm(paste("bad dimensions for V",dim(V)))}
 if(length(a) != ncomp)
    {pandterm(paste("a wrong length, length= ",length(a)))}
+bada=FALSE
+for(i in 1:ncomp){if(a[i] < 0) bada=TRUE}
+if(bada) pandterm("invalid values in a vector")
 #
 # check MCMC argument
 #
+
 if(missing(Mcmc)) {pandterm("requires Mcmc argument")}
 else
    {
     if(is.null(Mcmc$R)) 
        {pandterm("requires Mcmc element R")} else {R=Mcmc$R}
     if(is.null(Mcmc$keep)) {keep=1} else {keep=Mcmc$keep}
+    if(is.null(Mcmc$LogLike)) {LogLike=FALSE} else {LogLike=Mcmc$LogLike}
    }
 
 #
@@ -117,12 +138,13 @@ print(V)
 cat("  Dirichlet parameters ",fill=TRUE)
 print(a)
 cat(" ",fill=TRUE)
-cat(" Mcmc Parms: R= ",R," keep= ",keep,fill=TRUE)
+cat(" Mcmc Parms: R= ",R," keep= ",keep," LogLike= ",LogLike,fill=TRUE)
 
 pdraw=matrix(double(floor(R/keep)*ncomp),ncol=ncomp)
 zdraw=matrix(double(floor(R/keep)*nobs),ncol=nobs)
 compdraw=list()
 compsd=list()
+if(LogLike) ll=double(floor(R/keep))
 
 #
 # set initial values of z
@@ -161,6 +183,7 @@ for(rep in 1:R)
       pdraw[mkeep,]=p
       zdraw[mkeep,]=z
       compdraw[[mkeep]]=compsd
+      if(LogLike) ll[mkeep]=llnmix(y,z,compsd)
       }
 }
 ctime = proc.time()[3]
@@ -168,5 +191,8 @@ cat('  Total Time Elapsed: ',round((ctime-itime)/60,2),'\n')
 
 nmix=list(probdraw=pdraw,zdraw=zdraw,compdraw=compdraw)
 attributes(nmix)$class="bayesm.nmix"
-return(nmix)
+if(LogLike) 
+	{return(list(ll=ll,nmix=nmix))}
+else
+	{return(list(nmix=nmix))}
 }
diff --git a/man/Scotch.Rd b/man/Scotch.Rd
index 2ae15c2..e2edd7b 100755
--- a/man/Scotch.Rd
+++ b/man/Scotch.Rd
@@ -40,7 +40,7 @@
 }
 \references{
   Chapter 4, \emph{Bayesian Statistics and Marketing} by Rossi et al.\cr 
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 \examples{
 data(Scotch)
diff --git a/man/bank.Rd b/man/bank.Rd
index 0378be5..e2dbe00 100755
--- a/man/bank.Rd
+++ b/man/bank.Rd
@@ -54,7 +54,7 @@
 }
 \references{ Appendix A, \emph{Bayesian Statistics and Marketing}
   by Rossi,Allenby and McCulloch. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1l}
 }
 \examples{
 data(bank)
diff --git a/man/breg.Rd b/man/breg.Rd
index 28562ee..cf9c5fe 100755
--- a/man/breg.Rd
+++ b/man/breg.Rd
@@ -32,11 +32,11 @@ breg(y, X, betabar, A)
 
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi,Allenby and McCulloch. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/cgetC.Rd b/man/cgetC.Rd
index aa25dcf..778cb05 100755
--- a/man/cgetC.Rd
+++ b/man/cgetC.Rd
@@ -28,7 +28,7 @@ cgetC(e, k)
 }
 
 \author{ Rob McCulloch and Peter Rossi, Graduate School of Business, University of Chicago.
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+  \email{perossichi at gmail.com}.
 }
 
 \seealso{ \code{\link{rscaleUsage}} }
diff --git a/man/cheese.Rd b/man/cheese.Rd
index 7e8b2b7..41a65f8 100755
--- a/man/cheese.Rd
+++ b/man/cheese.Rd
@@ -23,7 +23,7 @@
 }
 \references{
  Chapter 3, \emph{Bayesian Statistics and Marketing} by Rossi et al. \cr
- \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+ \url{http://www.perossi.org/home/bsm-1l}
 }
 \examples{
 data(cheese)
diff --git a/man/clusterMix.Rd b/man/clusterMix.Rd
index 5a73c40..c76be47 100755
--- a/man/clusterMix.Rd
+++ b/man/clusterMix.Rd
@@ -36,11 +36,11 @@ clusterMix(zdraw, cutoff = 0.9, SILENT = FALSE)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch Chapter 3. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
 \author{ Peter Rossi, Graduate School of Business, University of Chicago
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/condMom.Rd b/man/condMom.Rd
index f2575d9..b65f0c8 100755
--- a/man/condMom.Rd
+++ b/man/condMom.Rd
@@ -30,11 +30,11 @@ condMom(x, mu, sigi, i)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/createX.Rd b/man/createX.Rd
index ca1227c..1bdba13 100755
--- a/man/createX.Rd
+++ b/man/createX.Rd
@@ -34,11 +34,11 @@ createX(p, na, nd, Xa, Xd, INT = TRUE, DIFF = FALSE, base = p)
 
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \seealso{ \code{\link{rmnlIndepMetrop}}, \code{\link{rmnpGibbs}} }
diff --git a/man/customerSat.Rd b/man/customerSat.Rd
index ae7d1f1..305aa5f 100755
--- a/man/customerSat.Rd
+++ b/man/customerSat.Rd
@@ -29,7 +29,7 @@
 }
 \references{
   Case Study 3, \emph{Bayesian Statistics and Marketing} by Rossi et al.\cr 
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1*}
 }
 \examples{
 data(customerSat)
diff --git a/man/eMixMargDen.Rd b/man/eMixMargDen.Rd
index cdf5bfd..9ca12e0 100755
--- a/man/eMixMargDen.Rd
+++ b/man/eMixMargDen.Rd
@@ -34,11 +34,11 @@ eMixMargDen(grid, probdraw, compdraw)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/fsh.Rd b/man/fsh.Rd
index e7b43eb..538f69d 100755
--- a/man/fsh.Rd
+++ b/man/fsh.Rd
@@ -13,8 +13,8 @@ fsh()
   No value is returned.
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago, 
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA, 
+  \email{perossichi at gmail.com}.
 }
 
 \keyword{ utilities }
diff --git a/man/ghkvec.Rd b/man/ghkvec.Rd
index 6e16181..de05d68 100755
--- a/man/ghkvec.Rd
+++ b/man/ghkvec.Rd
@@ -30,11 +30,11 @@ ghkvec(L, trunpt, above, r)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi,Allenby and McCulloch,  Chapter 2. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi,Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \examples{
diff --git a/man/llmnl.Rd b/man/llmnl.Rd
index c35b61b..b057155 100755
--- a/man/llmnl.Rd
+++ b/man/llmnl.Rd
@@ -28,11 +28,11 @@ llmnl(beta,y, X)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/llmnp.Rd b/man/llmnp.Rd
index fb19036..5818ee2 100755
--- a/man/llmnp.Rd
+++ b/man/llmnp.Rd
@@ -45,11 +45,11 @@ llmnp(beta, Sigma, X, y, r)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapters 2 and 4. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/llnhlogit.Rd b/man/llnhlogit.Rd
index c235429..3e9b1cd 100755
--- a/man/llnhlogit.Rd
+++ b/man/llnhlogit.Rd
@@ -35,11 +35,11 @@ llnhlogit(theta, choice, lnprices, Xexpend)
 
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch,Chapter 4. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/lndIChisq.Rd b/man/lndIChisq.Rd
index 7ba53bd..d833cf3 100755
--- a/man/lndIChisq.Rd
+++ b/man/lndIChisq.Rd
@@ -24,11 +24,11 @@ lndIChisq(nu, ssq, x)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 2. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/lndIWishart.Rd b/man/lndIWishart.Rd
index c2610f1..550d233 100755
--- a/man/lndIWishart.Rd
+++ b/man/lndIWishart.Rd
@@ -25,11 +25,11 @@ lndIWishart(nu, V, IW)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 2. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/lndMvn.Rd b/man/lndMvn.Rd
index b7d9665..2419440 100755
--- a/man/lndMvn.Rd
+++ b/man/lndMvn.Rd
@@ -26,11 +26,11 @@ lndMvn(x, mu, rooti)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 2. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/lndMvst.Rd b/man/lndMvst.Rd
index 0425404..c9a6166 100755
--- a/man/lndMvst.Rd
+++ b/man/lndMvst.Rd
@@ -28,11 +28,11 @@ lndMvst(x, nu, mu, rooti,NORMC)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 2. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/logMargDenNR.Rd b/man/logMargDenNR.Rd
index db44be5..8ba48cf 100755
--- a/man/logMargDenNR.Rd
+++ b/man/logMargDenNR.Rd
@@ -22,10 +22,10 @@ logMargDenNR(ll)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 6. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1l}
 }
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 \section{Warning}{
   This routine is a utility routine that does \strong{not} check the
diff --git a/man/margarine.Rd b/man/margarine.Rd
index 42066c4..a82b519 100755
--- a/man/margarine.Rd
+++ b/man/margarine.Rd
@@ -52,7 +52,7 @@
 }
 \references{
   Chapter 5, \emph{Bayesian Statistics and Marketing} by Rossi et al.\cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 \examples{
 data(margarine)
diff --git a/man/mixDen.Rd b/man/mixDen.Rd
index 99c8147..e4bc664 100755
--- a/man/mixDen.Rd
+++ b/man/mixDen.Rd
@@ -28,11 +28,11 @@ mixDen(x, pvec, comps)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 3. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/mixDenBi.Rd b/man/mixDenBi.Rd
index c338a20..8c8f821 100755
--- a/man/mixDenBi.Rd
+++ b/man/mixDenBi.Rd
@@ -31,11 +31,11 @@ mixDenBi(i, j, xi, xj, pvec, comps)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 3. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/mnlHess.Rd b/man/mnlHess.Rd
index 815e624..6c1bb3a 100755
--- a/man/mnlHess.Rd
+++ b/man/mnlHess.Rd
@@ -24,11 +24,11 @@ mnlHess(beta,y, X)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 3. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1l}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/mnpProb.Rd b/man/mnpProb.Rd
index 1a5d34c..d932367 100755
--- a/man/mnpProb.Rd
+++ b/man/mnpProb.Rd
@@ -30,11 +30,11 @@ mnpProb(beta, Sigma, X, r)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi,Allenby and McCulloch,  Chapters 2 and 4. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 \seealso{ \code{\link{rmnpGibbs}}, \code{\link{createX}} }
 \examples{
diff --git a/man/momMix.Rd b/man/momMix.Rd
index c334665..fdb80c9 100755
--- a/man/momMix.Rd
+++ b/man/momMix.Rd
@@ -35,11 +35,11 @@ momMix(probdraw, compdraw)
 
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 5. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/nmat.Rd b/man/nmat.Rd
index 2d19b1e..4fa645f 100755
--- a/man/nmat.Rd
+++ b/man/nmat.Rd
@@ -17,8 +17,8 @@ nmat(vec)
 \value{
   k*k x 1 vector with correlation matrix
 }
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/numEff.Rd b/man/numEff.Rd
index 360f559..6a88885 100755
--- a/man/numEff.Rd
+++ b/man/numEff.Rd
@@ -27,11 +27,11 @@ numEff(x, m = as.integer(min(length(x), (100/sqrt(5000)) * sqrt(length(x)))))
 
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 3. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/orangeJuice.Rd b/man/orangeJuice.Rd
index c208105..3bade1e 100755
--- a/man/orangeJuice.Rd
+++ b/man/orangeJuice.Rd
@@ -81,7 +81,7 @@
 }
 \references{
     Chapter 5, \emph{Bayesian Statistics and Marketing} by Rossi et al.\cr
-    \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+    \url{http://www.perossi.org/home/bsm-1}
 }
 \examples{
 
diff --git a/man/plot.bayesm.hcoef.Rd b/man/plot.bayesm.hcoef.Rd
index 44346ec..eb62eeb 100755
--- a/man/plot.bayesm.hcoef.Rd
+++ b/man/plot.bayesm.hcoef.Rd
@@ -27,8 +27,8 @@
   \code{plot.bayesm.hcoef} is also exported for use as a standard function, as in
        \code{plot.bayesm.hcoef(array)}.
 }
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 \seealso{ \code{\link{rhierMnlRwMixture}},\code{\link{rhierLinearModel}},
           \code{\link{rhierLinearMixture}},\code{\link{rhierNegbinRw}} }
diff --git a/man/plot.bayesm.mat.Rd b/man/plot.bayesm.mat.Rd
index b9181ee..d158f51 100755
--- a/man/plot.bayesm.mat.Rd
+++ b/man/plot.bayesm.mat.Rd
@@ -38,8 +38,8 @@
   \code{plot.bayesm.mat} is also exported for use as a standard function, as in
       \code{plot.bayesm.mat(matrix)}
 }
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 \examples{
 ##
diff --git a/man/plot.bayesm.nmix.Rd b/man/plot.bayesm.nmix.Rd
index 757a7f7..151d99a 100755
--- a/man/plot.bayesm.nmix.Rd
+++ b/man/plot.bayesm.nmix.Rd
@@ -35,8 +35,8 @@
   \cr
   \code{plot.bayesm.nmix} can also be used as a standard function, as in \code{plot.bayesm.nmix(list)}.
 }
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 \seealso{ \code{\link{rnmixGibbs}}, \code{\link{rhierMnlRwMixture}}, \code{\link{rhierLinearMixture}},
            \code{\link{rDPGibbs}}}
diff --git a/man/rDPGibbs.Rd b/man/rDPGibbs.Rd
index 8f5ef5b..2c59ebd 100755
--- a/man/rDPGibbs.Rd
+++ b/man/rDPGibbs.Rd
@@ -59,7 +59,7 @@ Prioralpha:\cr
  
 lambda\_hyper:\cr
   \itemize{
-   \item{\code{alim}}{defines support of a distribution,def:c(.01,2) }
+   \item{\code{alim}}{defines support of a distribution,def:c(.01,10) }
    \item{\code{nulim}}{defines support of nu distribution, def:c(.01,3)} 
    \item{\code{vlim}}{defines support of v distribution, def:c(.1,4)} 
   }
@@ -122,8 +122,8 @@ nmix:\cr
  \item{vdraw}{vector of draws of base prior hyperparameter}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \seealso{ \code{\link{rnmixGibbs}},\code{\link{rmixture}}, \code{\link{rmixGibbs}} ,
diff --git a/man/rbiNormGibbs.Rd b/man/rbiNormGibbs.Rd
index 217be60..0172336 100755
--- a/man/rbiNormGibbs.Rd
+++ b/man/rbiNormGibbs.Rd
@@ -28,10 +28,10 @@ rbiNormGibbs(initx = 2, inity = -2, rho, burnin = 100, R = 500)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapters 2 and 3. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 \examples{
 ##
diff --git a/man/rbprobitGibbs.Rd b/man/rbprobitGibbs.Rd
index 4e7b02d..cf8f4cf 100755
--- a/man/rbprobitGibbs.Rd
+++ b/man/rbprobitGibbs.Rd
@@ -42,11 +42,11 @@ rbprobitGibbs(Data, Prior, Mcmc)
 
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 3. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \seealso{ \code{\link{rmnpGibbs}} }
diff --git a/man/rdirichlet.Rd b/man/rdirichlet.Rd
index 674bef5..62bb3f3 100755
--- a/man/rdirichlet.Rd
+++ b/man/rdirichlet.Rd
@@ -19,11 +19,11 @@ rdirichlet(alpha)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 2. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/rhierBinLogit.Rd b/man/rhierBinLogit.Rd
index e3afbea..d8fd028 100755
--- a/man/rhierBinLogit.Rd
+++ b/man/rhierBinLogit.Rd
@@ -65,11 +65,11 @@ rhierBinLogit(Data, Prior, Mcmc)
 
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 5. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 \examples{
 ##  
diff --git a/man/rhierLinearMixture.Rd b/man/rhierLinearMixture.Rd
index 09aa9b6..e6920aa 100755
--- a/man/rhierLinearMixture.Rd
+++ b/man/rhierLinearMixture.Rd
@@ -69,25 +69,27 @@ rhierLinearMixture(Data, Prior, Mcmc)
 \note{
   More on \code{probdraw} component of nmix return value list: \cr
   this is an R/keep by ncomp array of draws of mixture component probs (pvec)\cr
-  More on \code{compdraw} component of nmix return value list: \cr
-  \item{compdraw[[i]]}{ the ith draw of components for mixtures}
-  \item{compdraw[[i]][[j]]}{ ith draw of the jth normal mixture comp}
-  \item{compdraw[[i]][[j]][[1]]}{ ith draw of jth normal mixture comp mean vector}
-  \item{compdraw[[i]][[j]][[2]]}{ ith draw of jth normal mixture cov parm (rooti) }
+  More on \code{compdraw} component of nmix return value list: 
+  \describe{
+  \item{compdraw[[i]]}{the ith draw of components for mixtures}
+  \item{compdraw[[i]][[j]]}{ith draw of the jth normal mixture comp}
+  \item{compdraw[[i]][[j]][[1]]}{ith draw of jth normal mixture comp mean vector}
+  \item{compdraw[[i]][[j]][[2]]}{ith draw of jth normal mixture cov parm (rooti)}
+  }
 
   Note: Z should \strong{not} include an intercept and should be centered for ease of interpretation.\cr
   
-  Be careful in assessing prior parameter, Amu.  .01 can be too small for some applications. See 
+  Be careful in assessing the prior parameter, Amu.  .01 can be too small for some applications. See 
   Rossi et al, chapter 5 for full discussion.\cr
 
 } 
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 3. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 \seealso{ \code{\link{rhierLinearModel}} }
 \examples{
diff --git a/man/rhierLinearModel.Rd b/man/rhierLinearModel.Rd
index f38b1f3..a463a93 100755
--- a/man/rhierLinearModel.Rd
+++ b/man/rhierLinearModel.Rd
@@ -57,11 +57,11 @@ rhierLinearModel(Data, Prior, Mcmc)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 3. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.comu}.
 }
 \seealso{ \code{\link{rhierLinearMixture}} }
 \examples{
diff --git a/man/rhierMnlDP.Rd b/man/rhierMnlDP.Rd
index d22c21e..bbbe062 100755
--- a/man/rhierMnlDP.Rd
+++ b/man/rhierMnlDP.Rd
@@ -141,11 +141,11 @@ Mcmc:\cr
 } 
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 5. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
   
 \seealso{ \code{\link{rhierMnlRwMixture}} }
diff --git a/man/rhierMnlRwMixture.Rd b/man/rhierMnlRwMixture.Rd
index ae4a6e8..b9a00fe 100755
--- a/man/rhierMnlRwMixture.Rd
+++ b/man/rhierMnlRwMixture.Rd
@@ -93,11 +93,11 @@ rhierMnlRwMixture(Data, Prior, Mcmc)
 } 
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 5. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
   
 \seealso{ \code{\link{rmnlIndepMetrop}} }
diff --git a/man/rhierNegbinRw.Rd b/man/rhierNegbinRw.Rd
index 8cc5f04..2068518 100755
--- a/man/rhierNegbinRw.Rd
+++ b/man/rhierNegbinRw.Rd
@@ -73,11 +73,11 @@ rhierNegbinRw(Data, Prior, Mcmc)
 \seealso{ \code{\link{rnegbinRw}} }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 5. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Sridhar Narayanam & Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Sridhar Narayanam & Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 \examples{
 ##
diff --git a/man/rivDP.Rd b/man/rivDP.Rd
index a598951..d1fa5ca 100755
--- a/man/rivDP.Rd
+++ b/man/rivDP.Rd
@@ -90,8 +90,8 @@ rivDP(Data, Prior, Mcmc)
 }
 \seealso{\code{rivGibbs}}
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 \examples{
 ##
diff --git a/man/rivGibbs.Rd b/man/rivGibbs.Rd
index 35693b2..18c7670 100755
--- a/man/rivGibbs.Rd
+++ b/man/rivGibbs.Rd
@@ -56,11 +56,11 @@ rivGibbs(Data, Prior, Mcmc)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 5. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Rob McCulloch and Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Rob McCulloch and Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 \examples{
 ##
diff --git a/man/rmixGibbs.Rd b/man/rmixGibbs.Rd
index 270a9f3..4b6a542 100755
--- a/man/rmixGibbs.Rd
+++ b/man/rmixGibbs.Rd
@@ -29,11 +29,11 @@ rmixGibbs(y, Bbar, A, nu, V, a, p, z, comps)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Allenby, McCulloch, and Rossi, Chapter 5. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Rob McCulloch and Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Rob McCulloch and Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/rmixture.Rd b/man/rmixture.Rd
index df82a6c..43ecc23 100755
--- a/man/rmixture.Rd
+++ b/man/rmixture.Rd
@@ -25,8 +25,8 @@ rmixture(n, pvec, comps)
   \item{z}{ A n x 1 vector of indicators of which component each draw is taken from }
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/rmnlIndepMetrop.Rd b/man/rmnlIndepMetrop.Rd
index f233d03..72db34c 100755
--- a/man/rmnlIndepMetrop.Rd
+++ b/man/rmnlIndepMetrop.Rd
@@ -41,10 +41,10 @@ rmnlIndepMetrop(Data, Prior, Mcmc)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 5. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1l}
 }
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 \seealso{ \code{\link{rhierMnlRwMixture}} }
 \examples{
diff --git a/man/rmnpGibbs.Rd b/man/rmnpGibbs.Rd
index ab3aee2..0725212 100755
--- a/man/rmnpGibbs.Rd
+++ b/man/rmnpGibbs.Rd
@@ -61,11 +61,11 @@ rmnpGibbs(Data, Prior, Mcmc)
 
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 4. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1l}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \seealso{ \code{\link{rmvpGibbs}} }
diff --git a/man/rmultireg.Rd b/man/rmultireg.Rd
index b8dd997..e47a666 100755
--- a/man/rmultireg.Rd
+++ b/man/rmultireg.Rd
@@ -36,11 +36,11 @@ rmultireg(Y, X, Bbar, A, nu, V)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 2. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/rmvpGibbs.Rd b/man/rmvpGibbs.Rd
index ae8c0c3..dc421da 100755
--- a/man/rmvpGibbs.Rd
+++ b/man/rmvpGibbs.Rd
@@ -60,11 +60,11 @@ rmvpGibbs(Data, Prior, Mcmc)
 
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 4. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \seealso{ \code{\link{rmnpGibbs}} }
diff --git a/man/rmvst.Rd b/man/rmvst.Rd
index 0e4a873..bac9350 100755
--- a/man/rmvst.Rd
+++ b/man/rmvst.Rd
@@ -21,11 +21,11 @@ rmvst(nu, mu, root)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/rnegbinRw.Rd b/man/rnegbinRw.Rd
index f9df16a..5a77230 100755
--- a/man/rnegbinRw.Rd
+++ b/man/rnegbinRw.Rd
@@ -61,11 +61,11 @@ rnegbinRw(Data, Prior, Mcmc)
 
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby, McCulloch. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Sridhar Narayanam & Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Sridhar Narayanam & Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \examples{
diff --git a/man/rnmixGibbs.Rd b/man/rnmixGibbs.Rd
index ad9776b..d59f61b 100755
--- a/man/rnmixGibbs.Rd
+++ b/man/rnmixGibbs.Rd
@@ -15,7 +15,7 @@ rnmixGibbs(Data, Prior, Mcmc)
 \arguments{
   \item{Data}{ list(y) }
   \item{Prior}{ list(Mubar,A,nu,V,a,ncomp) (only ncomp required)}
-  \item{Mcmc}{ list(R,keep) (R required) }
+  \item{Mcmc}{ list(R,keep,Loglike) (R required) }
 }
 \details{
   Model: \cr
@@ -46,17 +46,21 @@ rnmixGibbs(Data, Prior, Mcmc)
     \item{ncomp}{ number of normal components to be included }
     \item{R}{ number of MCMC draws }
     \item{keep}{ MCMC thinning parm: keep every keepth draw (def: 1)}
+    \item{LogLike}{ logical flag for compute log-likelihood (def: FALSE)}
   }
 }
 \value{
-  \item{nmix} {a list containing: probdraw,zdraw,compdraw}
+  \item{nmix}{a list containing: probdraw,zdraw,compdraw}
+  \item{ll}{vector of log-likelihood values}
 }
 
 \note{
   more details on contents of nmix: \cr
+  \describe{
   \item{probdraw}{R/keep x ncomp array of mixture prob draws}
   \item{zdraw}{R/keep x nobs array of indicators of mixture comp identity for each obs}
   \item{compdraw}{R/keep lists of lists of comp parm draws}
+  }
 
   In this model, the component normal parameters are not-identified due to label-switching.
   However, the fitted mixture of normals density is identified as it is invariant to label-switching. 
@@ -66,11 +70,11 @@ rnmixGibbs(Data, Prior, Mcmc)
 
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 3. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \seealso{ \code{\link{rmixture}}, \code{\link{rmixGibbs}} ,\code{\link{eMixMargDen}}, \code{\link{momMix}},
@@ -109,7 +113,7 @@ if(0){
 ##
 ## plotting examples
 ##
-plot(out,Data=dm$x)
+plot(out$nmix,Data=dm$x)
 }
  
 }
diff --git a/man/rordprobitGibbs.Rd b/man/rordprobitGibbs.Rd
index 6dce63b..3bf1a9f 100755
--- a/man/rordprobitGibbs.Rd
+++ b/man/rordprobitGibbs.Rd
@@ -60,11 +60,11 @@ rordprobitGibbs(Data, Prior, Mcmc)
 
 \references{  \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch\cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \seealso{ \code{\link{rbprobitGibbs}} }
diff --git a/man/rscaleUsage.Rd b/man/rscaleUsage.Rd
index 2a3930f..45892bd 100755
--- a/man/rscaleUsage.Rd
+++ b/man/rscaleUsage.Rd
@@ -58,11 +58,11 @@ rscaleUsage(Data,Prior, Mcmc)
 
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby, and McCulloch, Case Study on Scale Usage Heterogeneity. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Rob McCulloch and Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Rob McCulloch and Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \examples{
diff --git a/man/rsurGibbs.Rd b/man/rsurGibbs.Rd
index da0f5a8..a035f97 100755
--- a/man/rsurGibbs.Rd
+++ b/man/rsurGibbs.Rd
@@ -50,11 +50,11 @@ rsurGibbs(Data, Prior, Mcmc)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 3. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \seealso{ \code{\link{rmultireg}} }
@@ -73,7 +73,7 @@ X1=cbind(iota,runif(nobs))
 X2=cbind(iota,runif(nobs),runif(nobs))
 Sigma=matrix(c(.5,.2,.2,.5),ncol=2)
 U=chol(Sigma)
-E=matrix(rnorm(2*nobs),ncol=2)%*%U
+E=matrix(rnorm(2*nobs),ncol=2)\%*\%U
 y1=X1\%*\%beta1+E[,1]
 y2=X2\%*\%beta2+E[,2]
 ##
diff --git a/man/rtrun.Rd b/man/rtrun.Rd
index 758c7bd..fd27ad5 100755
--- a/man/rtrun.Rd
+++ b/man/rtrun.Rd
@@ -25,11 +25,11 @@ rtrun(mu, sigma, a, b)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 2. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/runireg.Rd b/man/runireg.Rd
index 67b064b..cdaaa1a 100755
--- a/man/runireg.Rd
+++ b/man/runireg.Rd
@@ -39,11 +39,11 @@ runireg(Data, Prior, Mcmc)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 2. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \seealso{ \code{\link{runiregGibbs}} }
diff --git a/man/runiregGibbs.Rd b/man/runiregGibbs.Rd
index 7b4d1c0..10fad0e 100755
--- a/man/runiregGibbs.Rd
+++ b/man/runiregGibbs.Rd
@@ -40,11 +40,11 @@ runiregGibbs(Data, Prior, Mcmc)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 3. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \seealso{ \code{\link{runireg}} }
diff --git a/man/rwishart.Rd b/man/rwishart.Rd
index 447ea97..13df02d 100755
--- a/man/rwishart.Rd
+++ b/man/rwishart.Rd
@@ -30,11 +30,11 @@ rwishart(nu, V)
 }
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 2. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/simnhlogit.Rd b/man/simnhlogit.Rd
index 198fe16..876cc04 100755
--- a/man/simnhlogit.Rd
+++ b/man/simnhlogit.Rd
@@ -28,11 +28,11 @@ simnhlogit(theta, lnprices, Xexpend)
 
 \references{ For further discussion, see \emph{Bayesian Statistics and Marketing}
   by Rossi, Allenby and McCulloch, Chapter 4. \cr
-  \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+  \url{http://www.perossi.org/home/bsm-1}
 }
 
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 
 \section{Warning}{
diff --git a/man/summary.bayesm.mat.Rd b/man/summary.bayesm.mat.Rd
index c6adc78..d21683b 100755
--- a/man/summary.bayesm.mat.Rd
+++ b/man/summary.bayesm.mat.Rd
@@ -26,8 +26,8 @@
   \code{summary.bayesm.mat} is also exported for direct use as a standard function, as in 
         \code{summary.bayesm.mat(matrix)}.
 }
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 \seealso{ \code{\link{summary.bayesm.var}}, \code{\link{summary.bayesm.nmix}}}
 \examples{
diff --git a/man/summary.bayesm.nmix.Rd b/man/summary.bayesm.nmix.Rd
index ada7fab..ab3ba5e 100755
--- a/man/summary.bayesm.nmix.Rd
+++ b/man/summary.bayesm.nmix.Rd
@@ -20,12 +20,14 @@
 }
 \details{
   an object of class "bayesm.nmix" is a list of three components: 
+  \describe{
   \item{probdraw}{ a matrix of R/keep rows by dim of normal mix of mixture prob draws}
   \item{second comp}{ not used}
   \item{compdraw}{ list of list of lists with draws of mixture comp parms}
+  }
 }
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 \seealso{ \code{\link{summary.bayesm.mat}}, \code{\link{summary.bayesm.var}}}
 \examples{
@@ -35,4 +37,4 @@
 #  summary(out)
 #
 }
-\keyword{  hplot }
+\keyword{  plot }
diff --git a/man/summary.bayesm.var.Rd b/man/summary.bayesm.var.Rd
index abd0405..3349ae1 100755
--- a/man/summary.bayesm.var.Rd
+++ b/man/summary.bayesm.var.Rd
@@ -27,8 +27,8 @@
   \cr
   The posterior mean of the vector of standard deviations and the correlation matrix are also displayed
 }
-\author{ Peter Rossi, Graduate School of Business, University of Chicago,
-  \email{Peter.Rossi at ChicagoGsb.edu}.
+\author{ Peter Rossi, Anderson School, UCLA,
+  \email{perossichi at gmail.com}.
 }
 \seealso{ \code{\link{summary.bayesm.mat}}, \code{\link{summary.bayesm.nmix}}}
 \examples{
diff --git a/man/tuna.Rd b/man/tuna.Rd
index 71f98ba..6f95806 100755
--- a/man/tuna.Rd
+++ b/man/tuna.Rd
@@ -51,7 +51,7 @@
 }
 \references{
  Chapter 7, \emph{Bayesian Statistics and Marketing} by Rossi et al. \cr
- \url{http://faculty.chicagogsb.edu/peter.rossi/research/bsm.html}
+ \url{hhttp://www.perossi.org/home/bsm-1}
 }
 \examples{
 data(tuna)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/r-cran-bayesm.git



More information about the debian-science-commits mailing list