View source: R/skewhypCheckPars.R
| skewhypCheckPars | R Documentation |
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.
skewhypCheckPars(param)
param |
A numeric vector of proposed parameters for the skew hyperbolic t-distribution. |
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.
A list with components:
case |
Either |
errMessage |
An appropriate error message if an error was found, otherwise an empty string. |
David Scott d.scott@auckland.ac.nz, Fiona Grimson
dskewhyp
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.