Results

Results(patients, run_number)

Simulation output for a single model run.

Methods

Name Description
patient_df Return per-patient results as a DataFrame.
summary_df Return summary DataFrame with four rows: one per response category.

patient_df

Results.patient_df()

Return per-patient results as a DataFrame.

Each row represents one patient. Patients who had not completed their full pathway by the end of the run will have NaN for unset time attributes.

Returns

Name Type Description
pd.DataFrame Columns: run, patient_id, category, call_timestamp, response_time.

summary_df

Results.summary_df()

Return summary DataFrame with four rows: one per response category.

Returns

Name Type Description
pd.DataFrame Columns: run, n_patients.