gen_samples: Generate samples based on the decomposition of Y

View source: R/sampling_functions.R

gen_samplesR Documentation

Generate samples based on the decomposition of Y

Description

Generate samples based on the decomposition of Y

Usage

gen_samples(orthdir, dir, this_sd, nrSample = 1000,
  sampFun = function(n) rnorm(n, mean = 0, sd = this_sd), checkFun,
  trace = 1)

Arguments

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 TRUE, a progress bar will be printed to the console


davidruegamer/selfmade documentation built on Feb. 2, 2023, 7:51 a.m.