| is.GNARfit {GNAR} | R Documentation |
Function to check GNARfit objects
Description
is.GNARfit returns either TRUE or FALSE according to a series of GNARfit checks.
Usage
is.GNARfit(x)
Arguments
x |
the object to be tested |
Details
The is.GNARfit function checks whether the object passes a series of tests that correspond to it being the output of GNARfit:
Is it a list containing
$modand$frbicDoes it contain either
$yand$ddor $ysand$dsIs
$moda lm objectDoes
$frbichave the components to calculate the BIC with BIC.GNARfit
Value
is.GNARfit returns TRUE or FALSE corresponding to passing the above tests.
Examples
#check that the example fit meets the criteria above
is.GNARfit(GNARfit())
[Package GNAR version 1.1.3 Index]