def data_for_stan(cases, settings):
    """
    Returns data for the model.

    Parameters
    ----------

    list of float:
        Cumulative number of people infected (confirmed).

    Returns
    -------

    dict:
        Data that is supplied to Stan model.
    """

    q = -1 + settings.population_size / cases[0]

    return {
        "n": len(cases),
        "cases": cases,
        "k": settings.population_size,
        "q": q
    }