K1: First Order Penalty Matrix

Description Usage Arguments

View source: R/utility.R

Description

Generates a first order penalty matrix discussed by Lang and Brezger (2012). In short, when used as a prior precision matrix for B-splines, this matrix imposes a roughness penalty. Note that this matrix is not full rank.

Usage

1

Arguments

dim

dimension of output matrix. Must be at least three.


wzhorton/warptk documentation built on Nov. 14, 2020, 10:01 p.m.