Utility function to check whether an object is a valid estimates object. It must be a dataframe and have an index column named index_col_name that doesn't contain any NA values.

.check_is_estimate(user_input, parameter_name, index_col_name)

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.

index_col_name

string. Name of the index column in the user_input dataframe.

Value

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