Learn R Programming

BayesianFROC (version 0.2.1)

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 can be passed to the DrawCurves(), ppp() and ... etc

dig

To be passed to the function rstan::sampling() in rstan. An argument of rstan::sampling() 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