We would like to create a new variable that is the average of two variables measuring time.
We are trying to find the average of the maximum number of days spent in a program and the minimum number of days. We tried this code:
But it does not work. Is there a simple formula that sas will understand to create an average like this?