Learn R Programming

SkewHyperbolic (version 0.4-2)

skewhypCheckPars: Check Parameters of the Skew Hyperbolic Student t-distribution

Description

Given a set of parameters for the skew hyperbolic Student t-distribution, the function checks that the parameters are in the correct range, and that the set has the correct length of 4.

Usage

skewhypCheckPars(param)

Value

A list with components:

case

Either 'error' or 'normal', as identified by the function.

errMessage

An appropriate error message if an error was found, otherwise an empty string.

Arguments

param

A numeric vector of proposed parameters for the skew hyperbolic t-distribution.

Author

David Scott d.scott@auckland.ac.nz, Fiona Grimson

Details

The vector param should be of the form c(mu,delta,beta,nu). If either delta or nu is not greater than zero an error message is returned. If the vector param does not have a length of 4 then an error message is returned.

See Also

dskewhyp

Examples

Run this code
skewhypCheckPars(c(0,1,1,1))     #normal
skewhypCheckPars(c(0,0,1,1))     #error
skewhypCheckPars(c(0,1,1,-1))    #error
skewhypCheckPars(c(0,1,1))       #error

Run the code above in your browser using DataLab