Description Usage Arguments Details Value Examples
dcpo_xvt
performs a single cross-validation test for DCPO
1 2 3 4 5 6 7 8 |
dcpo_input |
a data frame of survey items and marginals generated by |
fold_number |
an integer indicating the number of the fold to treated as test data in the current analysis |
number_of_folds |
an integer indicating the total number of folds |
fold_seed |
a seed for reproducibly randomly assigning observations to folds; when a complete set of k-fold cross-validations is to be performed, the same seed should be used for all |
chime |
play chime when complete? |
... |
arguments to be passed to |
dcpo_xvt
performs a single cross-validation test of a DCPO estimation. To perform
a complete k-fold cross-validation, call it repeatedly, changing only the fold_number argument.
a stanfit object
1 2 3 4 5 | # Single cross-validation test with 25% test set
demsup_xvtest_25pct <- dcpo_xvt(demsup_data,
number_of_folds = 4,
iter = 300,
chains = 1) # 1 chain/300 iterations for example only; use defaults
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.