View source: R/linear_regression_mcr.r
Creates 'nrep_sample' copies of the sample, each of which permutes the covariate of interest in a different way. (Primarily intended for internal use.)
1 2 3 4 |
y |
scalar outcome vector |
X |
matrix of covariates |
dat_ref |
reference matrix of covariances |
kern_fun |
kernel function to use |
p1 |
index of X to permute |
reg_threshold |
norm constraint for model class |
tol |
tolerance used for calculations |
nrep_sample |
see |
verbose |
whether to report results during computation |
warn_psd |
whether to warn that small numbers are added to make the kernel matrix positive definite |
warn_duplicate |
whether to warn if duplicated rows of dat_ref are dropped |
warn_dropped |
passed to |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.