Utility function to check whether an object a valid bootstrap estimates object. It has to be a valid estimates object, and to have the columns specified by col_names.

.check_is_bootstrap_estimate(user_input, parameter_name, col_names)

Arguments

user_input

The variable to be tested

parameter_name

A string containing the name the tested parameter had in the initial function in which it was passed.

col_names

vector. Contains the column names of index_col, bootstrap_id_col and Re_estimate_col, as described by the summarise_uncertainty function.

Value

TRUE if all tests were passed. Throws an error otherwise.