getX | R Documentation |
The function getX
is used to get the matrix of covariates for the regression based on a specified polynomial order.
getX(samples, derivatives, polyorder)
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. |
The design matrix for the regression (except for the column of 1's for the intercept).
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.