fit_splines {moanin}R Documentation

Fit splines to each gene of data matrix, used by DE_timecourse

Description

Fit splines to each gene of data matrix, used by DE_timecourse

Usage

fit_splines(design_matrix, data, weights = NULL)

Arguments

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 data.

Details

Needed to allow for fitting weights, in which case for loop over every row/gene. Otherwise, just a call to lm.fit.

Value

matrix of the coefficients for each basis function, each row of the matrix containing the coefficients for the corresponding gene in data.


[Package moanin version 1.2.0 Index]