block_design: Transform a Spline Design Matrix in block compressed form

View source: R/utility.R

block_designR Documentation

Transform a Spline Design Matrix in block compressed form

Description

Transform a Spline Design Matrix in block compressed form

Usage

block_design(X, degree)

Arguments

X

The design matrix, as given by splines2::bSpline.

degree

Degree of the spline regression, as used in function splines2::bSpline.

Value

A matrix B with all non-zero entries of X and a vector of indices alpha representing the positions of the non-zero blocks of X.


goepp/aspline documentation built on June 18, 2022, 7:15 p.m.