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

add `refit()` to $gamlss() in palytic #18

Open stueller opened 4 years ago

stueller commented 4 years ago

Currently convergence issues are treated using a larger convergence criterion. We could instead/or in addition use the refit function, e.g.,

mod <- gamls(...) itwarn <- any(grepl("iterations", capture.output(warnings()))) if(itwarn) { mod <- refit(mod) }

a while loop with the warning detection could replace the one-off 'if' statement