View source: R/tfg_matrix_code.R
make_tfg_matrix | R Documentation |
set up a general trend filtering matrix
make_tfg_matrix(t, br = t, order = 0)
t |
vector of length n specifying locations of data points on x axis |
br |
vector of length (p-1) specifying break points on x axis (ie where changepoints can occur) By default br=t which allows breaks to occur between every data point. Note that internally duplicate elements of br are removed. |
order |
non-negative integer indicating order of trend filtering basis (0 is changepoint basis and is the only case we test and use) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.