milanwiedemann / suddengains

An R package for identifying sudden gains in longitudinal data
https://milanwiedemann.github.io/suddengains/
Other
7 stars 0 forks source link

plot_sg() function has wrong start and end means and sds #11

Closed milanwiedemann closed 5 years ago

milanwiedemann commented 5 years ago

for bysg datasets need to filter for unique IDs so that start values of cases with multiple gains only get selected once and not as often as that case had a sg/sl.

for byperson need to filter for sg/sl cases only so that not whole sample gets included in calculations for start and end value

milanwiedemann commented 5 years ago

done!