When data of a record are more closely spaced than sample_minutes
,
these are spline-subsampled to sample_minutes
. In the region of the initial slope,
i.e. the initial fifth of the time, the record is sampled more densely.
Too dense sampling leads to non-convergent nlme
fits and to long runs
with Stan-based fits.
The function is used internally by function link{nlme_fit}
in
package breathtestcore
and is exported
for use by package breathteststan
.