fit_splines {moanin} | R Documentation |
Fit splines to each gene of data matrix, used by DE_timecourse
fit_splines(design_matrix, data, weights = NULL)
design_matrix |
design matrix (containing evaluated basis matrix, but potentially other variables) to fit |
data |
a matrix of data to fix splines to |
weights |
A matrix of weights, of the same dimension as |
Needed to allow for fitting weights, in which case for loop over every row/gene. Otherwise, just a call to lm.fit.
matrix of the coefficients for each basis function, each row of the
matrix containing the coefficients for the corresponding gene in
data
.