Learn R Programming

ZVCV (version 1.0.0)

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

Description

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

Usage

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.