The function checks that the data is supplied as a data.frame or tibble and that it contains an equal number of choice observations per individual.
prepare_data(db, str_id, str_ct, n_id, n_ct, cores, check_data)
tibble() containing the data
A character string giving the name of the id variable
A character string giving the name of the ct variable
An integer giving the nubmer of respondents
An integer giving the number of choice situations
An integer indicating the number of cores to use in estimation
A boolean eqaul to TRUE if the code should skip the data checks on number of choice tasks per individual.
data.frame padded with NA
NOTE: While padding allows the use of fast matrix operations, it may come at the cost of disproportionate memory use for large datasets with many observations and variables.