test | R Documentation |
Generic method to do tests for the mmi model and family objects. For the models the appropriate
tests will be done depending on model type. Currently, a t-test using sandwich estimated standard errors
is done for mmi_lm
and KRmodcomp
Kenward-Rogers F-test is done for
mmi_lmm
objects. An lrt
is done for all other model objects.
The information is stored in a tibble.
For a fam
object, a test will be performed for each element in the family
and the information will be binded together in a using a map-reduce pattern.
The FDR-adjusted significance level is also calculated and added to the tibble.
test(object, ...)
## S3 method for class 'mmi_model'
test(object)
## S3 method for class 'mmi_lm'
test(object)
## S3 method for class 'mmi_lmm'
test(object)
## S3 method for class 'fam'
test(object)
object |
An mmi model object. |
mmi_model
: Method for superclass linkS4class{mmi_model}
mmi_lm
: Performs a t-test with the sandwiched-estimated standard errors and sets up a tibble
with the information.
mmi_lmm
: Performs an F test and setups a tibble with the information.
fam
: Maps over the family, performs a test for each model using the corresponding S3 method,
constructs a tibble with the p-value of the test included, and then binds the tibbles together.
Also computes the FDR-adjusted significance
level.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.