dual1d_Dmat: Utility function for creating the penalty matrix D that...

View source: R/helper_funcs.R

dual1d_DmatR Documentation

Utility function for creating the penalty matrix D that corresponds to a chain graph of length n

Description

Utility function for creating the penalty matrix D that corresponds to a chain graph of length n

Usage

dual1d_Dmat(m)

Arguments

n:

length of the chain graph

Value

An (n-1)x(n) penalty matrix D

Examples

n <- 10
D_1d <- dual1d_Dmat(n)

yiqunchen/PGInference documentation built on March 20, 2022, 11:51 p.m.