50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

drape (version 0.0.2)

new_X: 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)

Value

matrix with ncol(X) columns and (nrow(X)length(MC_variates) length(bw)) rows.

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.