Description Usage Arguments Details Value Examples

Add model fit criteria to model objects

1 2 3 4 5 6 7 8 9 10 11 12 | ```
add_criterion(x, ...)
## S3 method for class 'brmsfit'
add_criterion(
x,
criterion,
model_name = NULL,
overwrite = FALSE,
file = NULL,
force_save = FALSE,
...
)
``` |

`x` |
An |

`...` |
Further arguments passed to the underlying functions computing the model fit criteria. |

`criterion` |
Names of model fit criteria
to compute. Currently supported are |

`model_name` |
Optional name of the model. If |

`overwrite` |
Logical; Indicates if already stored fit
indices should be overwritten. Defaults to |

`file` |
Either |

`force_save` |
Logical; only relevant if |

Functions `add_loo`

and `add_waic`

are aliases of
`add_criterion`

with fixed values for the `criterion`

argument.

An object of the same class as `x`

, but
with model fit criteria added for later usage.

1 2 3 4 5 6 7 8 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.