Program to determine growth and decline functions from semi-longitudinal data