Learn R Programming

sstvars (version 1.1.0)

smart_distpars: Create random distribution parameter values close to given values

Description

smart_distpars generates random degrees of freedom parameter values close to given values.

Usage

smart_distpars(distpars, accuracy, cond_dist)

Value

Returns a numeric vector ...

If cond_dist == "Gaussian":

of length zero.

If cond_dist == "Student":

of length one containing a degrees of freedom parameter value (strictly larger than two).

If cond_dist == "ind_Student":

of length d containing a degrees of freedom parameter values (strictly larger than two).

If cond_dist == "ind_skewed_t":

of length 2d containing df params strictly larger than two in the first d elements and skewness params strictly between -1 and 1 in the rest d elements.

Arguments

distpars

the old distribution parameters (of all regimes)

accuracy

a positive real number adjusting how close to the given distribution parameters the returned values should be.