# API Reference


The complete public API for preparing time-to-event tables and predicting state-occupancy probabilities, with or without competing events.


## Event table


Compute an inspectable Aalen-Johansen event table from time-to-event observations.


[prepare_event_table()](prepare_event_table.md#polarstate.prepare_event_table)  
Compute an inspectable Aalen-Johansen event table.


## Time-horizon estimates


Return state-occupancy estimates at requested time horizons.


[predict_aj_estimates()](predict_aj_estimates.md#polarstate.predict_aj_estimates)  
Evaluate state-occupancy probabilities at fixed time horizons or scheduled steps.
