Split a flat list of imputation_single() into multiple imputation_df()'s by ID
Split a flat list of imputation_single() into multiple imputation_df()'s by ID
split_imputations(list_of_singles, split_ids)
Arguments
list_of_singles: A list of imputation_single()'s
split_ids: A list with 1 element per required split. Each element must contain a vector of "ID"'s which correspond to the imputation_single() ID's that are required within that sample. The total number of ID's must by equal to the length of list_of_singles
Details
This function converts a list of imputations from being structured per patient to being structured per sample i.e. it converts