File: logMargDenNR.Rd

package info (click to toggle)
r-cran-bayesm 3.1-5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,204 kB
  • sloc: cpp: 3,115; ansic: 89; makefile: 7; sh: 4
file content (31 lines) | stat: -rwxr-xr-x 972 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
\name{logMargDenNR}
\alias{logMargDenNR}
\concept{Newton-Raftery approximation}
\concept{bayes}
\concept{marginal likelihood}
\concept{density}

\title{Compute Log Marginal Density Using Newton-Raftery Approx}

\description{
\code{logMargDenNR} computes log marginal density using the Newton-Raftery approximation. 
}

\usage{logMargDenNR(ll)}

\arguments{
  \item{ll}{ vector of log-likelihoods evaluated at \code{length(ll)} MCMC draws }
}

\value{Approximation to log marginal density value.}

\section{Warning}{
This approximation can be influenced by outliers in the vector of log-likelihoods; use with \strong{care}.  This routine is a utility routine that does \strong{not} check the input arguments for proper dimensions and type.
}

\author{ Peter Rossi, Anderson School, UCLA, \email{perossichi@gmail.com}.}

\references{For further discussion, see Chapter 6, \emph{Bayesian Statistics and Marketing} by Rossi, Allenby, and McCulloch. }


\keyword{distribution}