Skip to contents

Generate subsets of out-of-sample predictions data by estimate_type for multiple analysis datasets.

Usage

generate_yi_subsets(yi_analysis)

Arguments

yi_analysis

A dataframe containing multiple datasets of out-of-sample predictions and corresponding diversity data.

Value

A datraframe with the character columns dataset, estimate_type and list-cols data and diversity_data

Details

The object yi_analysis should contain the character column dataset, and list-columns data and diversity_data. In essence, both data and diversity_data are nested by dataset. data should be a list-col of grouped_df, which should also contain the list-col back_transformed_data.

If the column back_transformed_data contains NA values, that row will be removed from the list-column data. If the column estimate_type is present in yi_analysis, it will be removed, and replaced with the estimate_type derived from the scenario and SurveyID columns in each back_transformed_data dataset.

Author

Elliot Gould