create_design_matrix: Create design matrix

View source: R/utils.R

create_design_matrixR Documentation

Create design matrix

Description

Generic function for crating a radial basis function (RBF) design matrix for input vector X.

Usage

create_design_matrix(L, X, c = 1.2)

Arguments

L

Total number of basis functions, including the bias term.

X

Vector of covariates

c

Scaling parameter for variance of RBFs

Value

A design matrix object H.

Author(s)

C.A.Kapourani C.A.Kapourani@ed.ac.uk

See Also

scmet, scmet_differential, scmet_hvf_lvf

Examples

# Extract
H <- create_design_matrix(L = 4, X = scmet_dt$X)


andreaskapou/scMET documentation built on June 1, 2022, 11:47 p.m.