new_X {drape} | R Documentation |
Generate a matrix of covariates for use in resmoothing, in which the d'th column of X is translated successively by the Kronecker product of bw and MC_variates.
Description
Generate a matrix of covariates for use in resmoothing, in which the d'th column of X is translated successively by the Kronecker product of bw and MC_variates.
Usage
new_X(X, d, MC_variates, bw)
Arguments
X |
matrix of covariates. |
d |
integer index of covariate to be smoothed along. |
MC_variates |
vector of standard Gaussian rvs. |
bw |
vector of bandwidths for the Gaussian kernel. |
Value
matrix with ncol(X) columns and (nrow(X)length(MC_variates) length(bw)) rows.
[Package drape version 0.0.1 Index]