zeitzeigerFit: Estimate time-dependent mean.

Description Usage Arguments Value See Also

View source: R/zeitzeiger_fit.R

Description

zeitzeigerFit estimates the mean of each feature as a function of the periodic variable, using a periodic smoothing spline.

Usage

1
2
zeitzeigerFit(x, time, fitMeanArgs = list(rparm = NA, nknots = 3),
  dopar = FALSE)

Arguments

x

Matrix of measurements, with observations in rows and features in columns. Missing values are allowed.

time

Vector of values of the periodic variable for the observations, where 0 corresponds to the lowest possible value and 1 corresponds to the highest possible value.

fitMeanArgs

List of arguments to pass to bigspline.

dopar

Logical indicating whether to process features in parallel. Use registerDoParallel to register the parallel backend.

Value

xFitMean

List of results from bigspline. Length is number of columns in x.

xFitResid

Matrix of residuals, same dimensions as x.

See Also

bigspline, zeitzeigerSpc, zeitzeigerPredict


jakejh/zeitzeiger documentation built on Nov. 22, 2017, 2:06 a.m.