Learn R Programming

mixAR (version 0.22.8)

show_diff: Show differences between two models

Description

Show differences between two MixAR models in a way that enables quick comparison between them. This is a generic function, package mixAR defines methods for MixAR models.

Usage

show_diff(model1, model2)

Value

The function is called for the side effect of printing the differences between the two models and has no useful return value.

Arguments

model1,model2

the MixAR models to be compared.

Author

Georgi N. Boshnakov

Methods

signature(model1 = "MixAR", model2 = "MixAR")

signature(model1 = "MixARGaussian", model2 = "MixARgen")

signature(model1 = "MixARgen", model2 = "MixARGaussian")

signature(model1 = "MixARgen", model2 = "MixARgen")

Details

show_diff() is a generic function with dispatch on both arguments.

show_diff() prints the differences between two models in convenient form for comparison. The methods for MixAR models allow to see differences between similar models at a glance.

Examples

Run this code
## the examples reveal that the models below
##        differ only in the noise distributions
show_diff(exampleModels$WL_Ct_3, exampleModels$WL_Bt_1)
show_diff(exampleModels$WL_Bt_1, exampleModels$WL_Ct_3)
show_diff(exampleModels$WL_Ct_2, exampleModels$WL_Bt_3)

Run the code above in your browser using DataLab