calc_aggregatestability function

Calculate aggregate stability index based on occupation CEC