Hi, can someone can help me with this query ?
I have 12 numerical variables for each subject, 6 variables are before an intervention (pre1, pre2, pre3, pre4, pre5 and pre6) and 6 are after an intervention (post1, post2, post3, post4, post5 and post6). I need to work out for each subject if any 3 of the 6 post intervention variables has decreased by 30% and in the remaining 3/6 variables, if ≤1 variables has increased by 30%.
I have generated a new set of variables which are ± 30% of the pre-variable values to compare with corresponding post-variables. But since it is any 3 out of any 6 variables and then choosing the remaining 3 variables to compare, I am unable to write a script for this. I have tried searching for related previous posts here but couldn’t find any. I am relatively new to stata, any help is greatly appreciated.
Thanks
Sunil
I have 12 numerical variables for each subject, 6 variables are before an intervention (pre1, pre2, pre3, pre4, pre5 and pre6) and 6 are after an intervention (post1, post2, post3, post4, post5 and post6). I need to work out for each subject if any 3 of the 6 post intervention variables has decreased by 30% and in the remaining 3/6 variables, if ≤1 variables has increased by 30%.
I have generated a new set of variables which are ± 30% of the pre-variable values to compare with corresponding post-variables. But since it is any 3 out of any 6 variables and then choosing the remaining 3 variables to compare, I am unable to write a script for this. I have tried searching for related previous posts here but couldn’t find any. I am relatively new to stata, any help is greatly appreciated.
Thanks
Sunil
Comment