50% off | Unlimited Data & AI Learning

Last chance! 50% off unlimited learning

Sale ends in


DCPO (version 0.5.3)

get_xvt_results: Get results of DCPO cross-validation testing

Description

get_xvt_results performs a single cross-validation test for dcpo's estimates of cross-national public opinion

Usage

get_xvt_results(dcpo_xvt_output, ci = 80)

Arguments

dcpo_xvt_output

output from a single call to DCPO::dcpo_xvt or a k-fold test list of such output generated by purrr::map

ci

an integer indicating the desired width of credible interval for coverage testing; 80 is the default.

Value

a stanfit object

Examples

Run this code
# NOT RUN {
# Single cross-validation test with 25% test set
demsup_xvtest_25pct <- dcpo_xvt(demsup_data,
                           chime = FALSE,
                           number_of_folds = 4,
                           iter = 300,
                           chains = 1) # 1 chain/300 iterations for example only; use defaults

get_xvt_results(demsup_xvtest_25pct)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab