Learn R Programming

BayesianFROC (version 1.0.0)

stanfit_from_its_inherited_class: Chage S4 class to stanfit

Description

Chage S4 class to stanfit

Usage

stanfit_from_its_inherited_class(StanS4class)

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

Value

A fitted model object whose S4 class is the stanfit

Examples

Run this code
# NOT RUN {
#========================================================================================
#                   Draw   a trace plot for a paramter whose R hat is largest
#========================================================================================


#  Fit a model to data
#______________________



      f <- fit_Bayesian_FROC(
                         ite  = 111,
                          cha = 1,
                     dataList = d)

# Change the class of the above object "f" to stanfit from its inherited class
#____________________________________________________________________



  stanfit_from_its_inherited_class(f)


# }
# NOT RUN {
# }

Run the code above in your browser using DataLab