File: pointwise.Rd

package info (click to toggle)
r-cran-loo 2.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,836 kB
  • sloc: sh: 15; makefile: 2
file content (35 lines) | stat: -rw-r--r-- 1,245 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
32
33
34
35
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pointwise.R
\name{pointwise}
\alias{pointwise}
\alias{pointwise.loo}
\title{Convenience function for extracting pointwise estimates}
\usage{
pointwise(x, estimate, ...)

\method{pointwise}{loo}(x, estimate, ...)
}
\arguments{
\item{x}{A \code{loo} object, for example one returned by \code{\link[=loo]{loo()}},
\code{\link[=loo_subsample]{loo_subsample()}}, \code{\link[=loo_approximate_posterior]{loo_approximate_posterior()}}, \code{\link[=loo_moment_match]{loo_moment_match()}}, etc.}

\item{estimate}{Which pointwise estimate to return. By default all are
returned. The objects returned by the different functions (\code{\link[=loo]{loo()}},
\code{\link[=loo_subsample]{loo_subsample()}}, etc.) have slightly different estimates available.
Typically at a minimum the estimates \code{elpd_loo}, \code{looic}, \code{mcse_elpd_loo},
\code{p_loo}, and \code{influence_pareto_k} will be available, but there may be
others.}

\item{...}{Currently ignored.}
}
\value{
A vector of length equal to the number of observations.
}
\description{
Convenience function for extracting pointwise estimates
}
\examples{
x <- loo(example_loglik_array())
pointwise(x, "elpd_loo")

}