[r-cran-mnp] 38/51: Import Upstream version 2.5-5

Andreas Tille tille at debian.org
Fri Sep 8 14:14:48 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-mnp.

commit 1bdc123583577bd7d03cf427226ba6062ada55ff
Author: Andreas Tille <tille at debian.org>
Date:   Fri Sep 8 15:54:58 2017 +0200

    Import Upstream version 2.5-5
---
 DESCRIPTION        |  6 +++---
 R/predict.mnp.R    |  1 +
 man/predict.mnp.Rd | 19 +++++++++++--------
 3 files changed, 15 insertions(+), 11 deletions(-)

diff --git a/DESCRIPTION b/DESCRIPTION
index 075496d..93691f7 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,6 +1,6 @@
 Package: MNP
-Version: 2.5-4
-Date: 2007-05-24
+Version: 2.5-5
+Date: 2007-08-01
 Title: R Package for Fitting the Multinomial Probit Model
 Author: Kosuke Imai <kimai at princeton.edu>, 
         David A. van Dyk <dvd at uci.edu>. 
@@ -27,4 +27,4 @@ LazyLoad: yes
 LazyData: yes
 License: GPL (version 2 or later)
 URL: http://imai.princeton.edu/research/MNP.html
-Packaged: Thu May 24 12:08:24 2007; kimai
+Packaged: Wed Aug  1 20:15:11 2007; kimai
diff --git a/R/predict.mnp.R b/R/predict.mnp.R
index 224f97a..ed3b7c6 100644
--- a/R/predict.mnp.R
+++ b/R/predict.mnp.R
@@ -78,6 +78,7 @@ predict.mnp <- function(object, newdata = NULL, newdraw = NULL, n.draws = 1,
   else
     ans$p <- NULL
 
+  ans$x <- x
   class(ans) <- "predict.mnp"
   return(ans)
 }
diff --git a/man/predict.mnp.Rd b/man/predict.mnp.Rd
index 3d7c627..2185c41 100644
--- a/man/predict.mnp.Rd
+++ b/man/predict.mnp.Rd
@@ -76,10 +76,10 @@
   following elements:
   \item{o}{A three dimensional array of the Monte Carlo sample from the
     posterior predictive distribution of the ordered preferences. The
-    first dimension corresponds to the alternatives in the choice set,
-    the second dimension corresponds to the rows of \code{newdata} (or
-    the original data set if \code{newdata} is left unspecified), 
-    and the third dimension indexes the Monte Carlo sample. If
+    first dimension corresponds to the rows of \code{newdata} (or
+    the original data set if \code{newdata} is left unspecified),
+    the second dimension corresponds to the alternatives in the choice
+    set, and the third dimension indexes the Monte Carlo sample. If
     \code{n.draws} is greater than 1, then each entry will be an average
     over these additional draws.
   }
@@ -87,10 +87,11 @@
     probabilities for each alternative in the choice set being most
     preferred. The first demension corresponds to the rows of
     \code{newdata} (or the original data set if \code{newdata} is left
-    unspecified), and the second dimension corresponds
-    to the alternatives in the choice set. If \code{n.draws} is greater
-    than 1, then the third diemsion exists and indexes the Monte Carlo
-    sample.  
+    unspecified), the second dimension corresponds
+    to the alternatives in the choice set, and the third dimension (if
+    it exists) indexes the Monte Carlo sample. If \code{n.draws} is
+    greater than 1, then the third diemsion exists and indexes the Monte
+    Carlo sample.  
   }
   \item{y}{A matrix of the Monte Carlo sample from the
     posterior predictive distribution of the most preferred choice. The
@@ -99,6 +100,8 @@
     second dimension indexes the Monte Carlo sample. \code{n.draws} will
     be set to 1 when computing this quantity of interest.  
   }
+  \item{x}{A matrix of covariates used for prediction
+  }
 }
 
 \seealso{\code{mnp}; MNP home page at

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



More information about the debian-science-commits mailing list