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

Description Usage Arguments Details Value

View source: R/backwardCompatibility.R

Description

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

Usage

1

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 Oct. 25, 2021, 2:14 a.m.