I have a dataset with repeated measures at certain timepoints. Overall, a decreasing trend is seen in the measurements, but I am interested in the cases who do not decline or even have increasing values. I tried several filters/subsets, but don't know how to filter out these cases. Could anyone help?
Thank you!
Name of dataframe : epds Name of value I am interested in : epds_score Name of visits at which the measurements were done : visitnum.x
I hoped I would filter them out using either:
subset(epds, epds_score[epds$visitnum.x=='1.0'] =< epds_score[epds$visitnum.x >'1.0'])
or
filter(epds, !epds_score[visitnum.x=='1.0]' %<% epds_score[visitnum.x > '1.0'])
probably, I am doing something wrong and would really appreciate your help.