checkConsistentDimensions: Check Consistent Dimensions

Description Usage Arguments Details Value Examples

View source: R/dse1.R

Description

Check that dimensions of a model and data agree.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
    checkConsistentDimensions(obj1, obj2=NULL)
    ## Default S3 method:
checkConsistentDimensions(obj1, obj2=NULL)
    ## S3 method for class 'ARMA'
checkConsistentDimensions(obj1, obj2=NULL)
    ## S3 method for class 'SS'
checkConsistentDimensions(obj1, obj2=NULL)
    ## S3 method for class 'TSdata'
checkConsistentDimensions(obj1, obj2=NULL)
    ## S3 method for class 'TSestModel'
checkConsistentDimensions(obj1, obj2=NULL)
    

Arguments

obj1

An object containing a TSmodel, TSdata, or TSestModel, depending on the method

obj2

Another object containing TSdata corresponding to the TSmodel in obj1, or a TSmodel corresponding to the TSdata in obj1.

Details

Check that dimensions of a model and data agree. If obj1 is a TSestModel then if obj2 is NULL, TSdata is taken from obj1.

Value

logical

Examples

1
2
3
    data("eg1.DSE.data.diff", package="dse")
    model <- estVARXls(eg1.DSE.data.diff)
    checkConsistentDimensions(model)

dse documentation built on March 26, 2020, 7:12 p.m.