Description Usage Arguments Value Author(s) Examples
View source: R/preprocess_spline.R
The data is denoised and/or imputed by fitting cubic splines. This requires a minimum of 4 data points per variables (e.g., proteins).
If a degree of freedom (dof
) is set to cv
, cross validation is performed on each variable to identify the optimal dof for that variable.
If dof
set to cv.global
, the mean of all cross-validated DoFs is used for all variables.
Lastly, dof
can be set to a fixed numeric value predetermied by the user.
1 2 3 4 5 6 7 8 9 10 |
dat |
a time-series data matrix with |
timepoints |
a vector of time points for columns of dat. |
dof |
the degree of freedom in spline.smooth. By default, |
center.dat |
a logical specifying to center the input and denoised data. By default, |
scale.dat |
a logical specifying to scale the input and denoised data. By default, |
verbose |
a logical specifying to print the computational progress. By default, |
seed |
a seed for the random number generator. |
... |
optional arguments. |
preprocess_spline
returns an imputed data, a denoised and imputed data data, and a vector of degrees of freedom.
Neo Christopher Chung nchchung@gmail.com
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.