R/bpc_exports.R
check_convergence_diagnostics.Rd
Run cmdstan diagnostics for convergence and print the results in the screen Thin wrapper over cmdstanr cmdstan_diagnose() function
check_convergence_diagnostics(bpc_object)
bpc_object | a bpc object |
---|
# \donttest{ m<-bpc(data = tennis_agresti, player0 = 'player0', player1 = 'player1', result_column = 'y', model_type = 'bt', solve_ties = 'none') #> Running MCMC with 4 parallel chains... #> #> Chain 1 finished in 3.5 seconds. #> Chain 3 finished in 3.4 seconds. #> Chain 2 finished in 3.5 seconds. #> Chain 4 finished in 3.5 seconds. #> #> All 4 chains finished successfully. #> Mean chain execution time: 3.5 seconds. #> Total execution time: 3.6 seconds. check_convergence_diagnostics(m) #> Processing csv files: /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/RtmphHd10I/file1af43d990293/reference/.bpcs/bt-202111110635-1-669bd8.csv, /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/RtmphHd10I/file1af43d990293/reference/.bpcs/bt-202111110635-2-669bd8.csv, /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/RtmphHd10I/file1af43d990293/reference/.bpcs/bt-202111110635-3-669bd8.csv, /private/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/RtmphHd10I/file1af43d990293/reference/.bpcs/bt-202111110635-4-669bd8.csv #> #> Checking sampler transitions treedepth. #> Treedepth satisfactory for all transitions. #> #> Checking sampler transitions for divergences. #> No divergent transitions found. #> #> Checking E-BFMI - sampler transitions HMC potential energy. #> E-BFMI satisfactory for all transitions. #> #> Effective sample size satisfactory. #> #> Split R-hat values satisfactory all parameters. #> #> Processing complete, no problems detected. # }