mmrm Fits' Datasets Contain the Same
ObservationsChecks a list of mmrm fits to see whether all their datasets contain the
same observations and that they only increase in columns from one dataset to
the next (i.e, columns are nested).
h_check_fits_all_data_same(fits)TRUE or FALSE indicating whether or not the datasets underlying
the elements of fits contain the same observations, and that each
dataset's columns are a subset of the next dataset's columns.
(list)
list of mmrm fits.
For efficiency, the inspection takes place in this order:
FALSE is returned early if not all datasets have the same number of
rows.
FALSE is returned early if a dataset has a column not in the next
dataset.
The columns in common among adjacent datasets are sorted and compared
using all.equal() with check.attributes = FALSE.
This function is more efficient than running h_check_columns_nested() on
all adjacent pairs and supplying the results to all().
h_check_columns_nested(), which performs this check on two data
sets.