gmvar_to_gsmvar: Makes class 'gmvar' objects compatible with the functions...

View source: R/backwardCompatibility.R

gmvar_to_gsmvarR 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.


saviviro/gmvarkit documentation built on March 8, 2024, 4:15 a.m.