getX: ZV-CV design matrix

Description Usage Arguments Value See Also

View source: R/poly.R

Description

The function getX is used to get the matrix of covariates for the regression based on a specified polynomial order.

Usage

1
getX(samples, derivatives, polyorder)

Arguments

samples

An N by d matrix of samples from the target

derivatives

An N by d matrix of derivatives of the log target with respect to the parameters

polyorder

The order of the polynomial.

Value

The design matrix for the regression (except for the column of 1's for the intercept).

See Also

Phi_fn for a very similar function for use in semi-exact control functionals. The function Phi_fn essentially gets the same matrix but with a column of ones added.


ZVCV documentation built on July 2, 2020, 2:38 a.m.

Related to getX in ZVCV...