ICTatRTI / PersonAlytics

PersonAlytics: Analytics for single-case and small N intensive longitudinal designs, idiographic clinical trials (ICT), and interrupted time series.
3 stars 2 forks source link

BUG: subgroup vector needs a length check #5

Closed stueller closed 4 years ago

stueller commented 4 years ago

if the subgroup vector passed to a Palytic object (e.g., in $lme or $gamlss) is longer (shorter not tested) than the rows in the data, the vector still gets used without an error. It appears that if nrow(data)=nr, only the first nr elements of subgroup get used, but this has not been confirm.

stueller commented 4 years ago

added function subCheck(subgroup, self$datac) to test