Compute the post treatment values.

post_treatment_bliss(posterior_sample, param, data)

Arguments

posterior_sample

a list provided by the function Bliss_Gibbs_Sampler.

param

a list containing:

K

a vector of integers, corresponding to the numbers of intervals for each covariate.

data

a list containing required options to run the function dposterior.

Value

A list of important post treatment value: BIC, the maximum of the log likelihood and the numbre of parameters.

Examples

# \donttest{
data(data1)
data(param1)
data(res_bliss1)

post_treatment_bliss(res_bliss1$posterior_sample,param1,data1)
#> $BIC
#> [1] -44.58653
#> 
#> $loglik
#> [1] 47.6217
#> 
#> $nb_param
#> [1] 11
#> 
# }