View source: R/subsample_data.R
subsample_data | R Documentation |
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
.
subsample_data(data, sample_minutes)
data |
Data frame with columns |
sample_minutes |
Required average density. When points are more closely spaced, data are subsampled. No upsampling occurs when data are more sparse. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.