Learn R Programming

BayesianFROC (version 1.0.0)

extract_estimates_MRMC: MRMC: Extract All Posterior Mean Estimates from stanfitExtended object

Description

Extract Posterior Mean estimates, preserving its format, such as array, vector. From MRMC models, it extract the EAPs and CIs.

Usage

extract_estimates_MRMC(StanS4class, dig = 3)

Arguments

StanS4class

An S4 object of class stanfitExtended which is an inherited class from the S4 class stanfit. This R object is a fitted model object as a return value of the function fit_Bayesian_FROC().

To be passed to DrawCurves() ... etc

dig

A variable to be passed to the function rstan::sampling() of rstan in which it is named ...??. A positive integer representing the Significant digits, used in stan Cancellation. Default = 5,

Value

EAPs, CIs which preserving its format, such as array, vector.

Details

To validate our model has no bias, that is comparison of true parameters of distributions and EAPs, we have to extract the estimates from the stanfitExtended object. And this function do it.

See Also

extract_EAP_CI() is used in the function extract_estimates_MRMC().

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
 fit <- fit_Bayesian_FROC(
              BayesianFROC::dataList.Chakra.Web.orderd,
              summary = FALSE,
              ite=111)

 EAPs <- extract_estimates_MRMC(fit)

# }
# NOT RUN {
# dottest

# }

Run the code above in your browser using DataLab