I have a question regading calculations and indexing. Below I have an except
of a larrge data set. How can I calculate the percentage change in the
variable X from the earliest date to the last date (e.g. in the case where
id==1, the percentage change in X from 7/1/05-7/6/05). I want to do this by
id for all my observations (i have thousands of obsevations and the date
periods are of varying lengths...). I know it's of the 'by id:' type of
statements, but I just can't get it right. Thank you.