Learn R Programming

dse (version 2020.2-1)

checkConsistentDimensions: Check Consistent Dimensions

Description

Check that dimensions of a model and data agree.

Usage

checkConsistentDimensions(obj1, obj2=NULL)
    # S3 method for default
checkConsistentDimensions(obj1, obj2=NULL)
    # S3 method for ARMA
checkConsistentDimensions(obj1, obj2=NULL)
    # S3 method for SS
checkConsistentDimensions(obj1, obj2=NULL)
    # S3 method for TSdata
checkConsistentDimensions(obj1, obj2=NULL)
    # S3 method for 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.

Value

logical

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.

Examples

Run this code
# NOT RUN {
    data("eg1.DSE.data.diff", package="dse")
    model <- estVARXls(eg1.DSE.data.diff)
    checkConsistentDimensions(model)
# }

Run the code above in your browser using DataLab