Skip to contents

Reorganises the data from nesting based on individual analysis submissions, to nesting based on the type of estimate.

Usage

split_yi_subsets(.data)

Arguments

.data

A dataset containing out-of-sample predictions

Value

A tibble of out-of-sample predictions subset by estimate_type and stored in the list-column data.

Details

This function is used to split a dataset of out-of-sample predictions by estimate_type, where out-of-sample predictions are stored in a list-column called back_transformed_data, with one data frame of data per analysis submission.

The estimate_type is derived from either the scenario and SurveyID columns in each back_transformed_data dataset. The estimate_type is then used to nest the data by estimate_type in the list-column data.

Removes unnecessary data in .data: augmented_data and checks.

See also

This function is called in the wrapper function generate_yi_subsets() to split out-of-sample predictions by estimate_type across multiple ManyAnalyst datasets.

Author

Elliot Gould