vgCheckPars | R Documentation |
Given a putative set of parameters for the variance gamma distribution, the functions checks if the parameters are in the correct range, and if the set has the correct length of 4.
vgCheckPars(param, ...)
param |
Numeric. Putative parameter values for a Variance Gamma distribution. |
... |
Further arguments for calls to |
The vector param
takes the form c(c, sigma, theta, nu)
.
If either sigma
or nu
is negative, then an error message
is returned.
If the vector param
has a length not equal to 4, then an error
message is returned.
A list with components:
case |
Whichever of |
errMessage |
An appropriate error message if an error was found,
the empty string |
David Scott d.scott@auckland.ac.nz, Christine Yang Dong c.dong@auckland.ac.nz
dvg
, vgMom
vgCheckPars(c(0,1,0,1)) # normal
vgCheckPars(c(0,0,0,1)) # error
vgCheckPars(c(0,1,0,-2)) # error
vgCheckPars(c(0,1,0)) # error
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.