powered by
is.GNARfit returns either TRUE or FALSE according to a series of GNARfit checks.
is.GNARfit
is.GNARfit(x)
the object to be tested
is.GNARfit returns TRUE or FALSE corresponding to passing the above tests.
TRUE
FALSE
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 $mod and $frbic
$mod
$frbic
Does it contain either $y and $dd or $ys and $ds
$y
$dd
ys
$ds
Is $mod a lm object
Does $frbic have the components to calculate the BIC with BIC.GNARfit
# NOT RUN { #check that the example fit meets the criteria above is.GNARfit(GNARfit()) # }
Run the code above in your browser using DataLab