gen_phi: Compute basis expansion.

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Compute basis expansion.

Usage

1
gen_phi(basis, x, J_mod, J_true)

Arguments

basis

A list of basis functions.

x

The scalar to be expanded.

J_mod

The number of basis functions to be used in the model (INCLUDING THE INTERCEPT!).

J_true

the number of basis functions to be used in the true basis expansion ( INCLUDING THE INTERCEPT)!

Value

A list containing vectors phi_true and phi_mod.


dfcorbin/npbanditC documentation built on March 23, 2020, 5:25 a.m.