gmvar_to_gsmvar {gmvarkit}R Documentation

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)

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.

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.


[Package gmvarkit version 2.1.2 Index]