Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

rhat

Function for extracting Rhat values from an hBayesDM object


Description

A convenience function for extracting Rhat values from an hBayesDM object. Can also check if all Rhat values are less than or equal to a specified value. If variational inference was used, an error message will be displayed.

Usage

rhat(fit = NULL, less = NULL)

Arguments

fit

Model output of class hBayesDM

less

A numeric value specifying how to check Rhat values. Defaults to FALSE.

Value

If 'less' is specified, then rhat(fit, less) will return TRUE if all Rhat values are less than or equal to 'less'. If any values are greater than 'less', rhat(fit, less) will return FALSE. If 'less' is left unspecified (NULL), rhat(fit) will return a data.frame object containing all Rhat values.


hBayesDM

Hierarchical Bayesian Modeling of Decision-Making Tasks

v1.1.1
GPL-3
Authors
Woo-Young Ahn [aut, cre], Nate Haines [aut], Lei Zhang [aut], Harhim Park [ctb], Jaeyeong Yang [ctb], Jethro Lee [ctb]
Initial release
2021-05-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.