checkout_states.Rd
This function processes the states of a given object and returns a data table with detailed information about each state.
checkout_states(object)
A data table with columns for time, incidence, age group, risk group, social group, model type, and state name.
The function generates a list of state names and categorizes them into risk groups, social groups, and model types. It then runs the state function on the input object and processes the resulting states into a data frame. The data frame is then transformed into a long format and additional columns are added to provide detailed information about each state.