I want to Reconstruct dataset from wide format to long format for analysis in mixed models. Some variables have 0M, 3M, 6M, 9M, 12M repeated measurements every 3 months for a 12M follow-up, and some have 12 measurements one every month. When I use VARTOCASES, how do I fill in the sub-command index? If I record (5) it is not suitable for repeated measurements every month and so on if I register (12) it will not be suitable for measurements every 3 months. What do you suggest?
VARSTOCASES
/ make WEIGHT from WEIGHT0M WEIGHT3M WEIGHT6M WEIGHT9M WEIGHT12M
/ make HB from HB1 to HB12
/ index = TIME (5)
/ keep = ID.