is.GNARfit | R Documentation |
is.GNARfit
returns either TRUE or FALSE according to a series of GNARfit checks.
is.GNARfit(x)
x |
the object to be tested |
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
Does it contain either $y
and $dd
or $ys
and $ds
Is $mod
a lm object
Does $frbic
have the components to calculate the BIC with BIC.GNARfit
is.GNARfit
returns TRUE
or FALSE
corresponding to passing the above tests.
#check that the example fit meets the criteria above
is.GNARfit(GNARfit())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.