loo.disbayes: Leave-one-out cross validation for disbayes models

View source: R/loo.R

loo.disbayesR Documentation

Leave-one-out cross validation for disbayes models

Description

Leave-one-out cross validation for disbayes models

Usage

## S3 method for class 'disbayes'
loo(x, outcome = "overall", ...)

Arguments

x

A model fitted by disbayes. Any of the computation methods are supported.

outcome

Either "overall", to assess the fit to all data, or one of "inc", "prev", "mort" or "rem", to assess the fit to the incidence data, prevalence data, mortalidy data or remission data, respectively.

...

Other arguments (currently unused).

Value

An object of class "loo" as defined by the loo package.

See Also

loo_indiv to return tidied observation-specific contributions to the overall model fit computed here.


disbayes documentation built on Sept. 10, 2023, 1:08 a.m.