Learn R Programming

gmvarkit (version 2.1.4)

gmvar_to_gsmvar: Makes class 'gmvar' objects compatible with the functions using class 'gsmvar' objects

Description

gmvar_to_gsmvar class 'gmvar' objects compatible with the functions using s class 'gsmvar' objects

Usage

gmvar_to_gsmvar(gsmvar)

Value

If the provided object has the class 'gsmvar', the provided object is returned without modifications. If the provided object has the class 'gmvar', its element $model is given a new subelement called also model and this is set to be "GMVAR". Also, the class of this object is changes to 'gsmvar' and then it is returned.

Arguments

gsmvar

a class 'gmvar' or 'gsmvar' object.

Details

This exists so that models estimated with earlier versions of the package can be used conveniently.