SourceCode.Transport.ftt_tr_survival

SourceCode.Transport.ftt_tr_survival#

Created on Fri Jan 5 14:38:50 2024

These function construct a age bracket matrix from historical and simulated car numbers per country.

The logic is that a fixed percentage of cars per age bracket are scrapped. New cars are the sum of growth in car numbers and scappage.

This means the new car numbers can be quite volatile, especially historically

Functions

add_new_cars_age_matrix(age_matrix, ...)

Add new cars to the age matrix.

get_survival_ratio(survival_function_array)

Transform survival function into a year-on-year ratio of survival.

initialise_age_matrix(data, titles)

At the start of the simulation, set up an age matrix, assuming an equilibrium has been reached

survival_function(data, time_lag, histend, ...)

Survival function for each car type