Learn R Programming

bpcs (version 1.0.0)

get_stanfit: Retrieve the stanfit object generated by rstan.

Description

This object can be used with any other function or package that uses stanfit objects from rstan

Usage

get_stanfit(bpc_object)

Arguments

bpc_object

a bpc object

Value

a stanfit object

Examples

Run this code
# NOT RUN {
m<-bpc(data = tennis_agresti,
player0 = 'player0',
player1 = 'player1',
result_column = 'y',
model_type = 'bt',
solve_ties = 'none')
stanfit<- get_stanfit(m)
print(class(stanfit))
# }

Run the code above in your browser using DataLab