View source: R/sampling_functions.R
gen_samples | R Documentation |
Generate samples based on the decomposition of Y
gen_samples(orthdir, dir, this_sd, nrSample = 1000, sampFun = function(n) rnorm(n, mean = 0, sd = this_sd), checkFun, trace = 1)
orthdir |
nx1 vector; component orthogonal to the direction of interest |
dir |
nx1 vector; component in the direction of interest |
this_sd |
scalar; (estimated / surrogate) value for the root of error variance |
nrSample |
integer; number of samples to be used |
sampFun |
function; function to generate samples from |
checkFun |
function; function to congruency with initial selection |
trace |
logical; if |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.