<< Matrices of Time series Matrices of Time series db2tsmat >>

Grocer >> Matrices of Time series > addts2tsmat

addts2tsmat

adds a ts to a tsmat

CALLING SEQUENCE

tsmat=addts2tsmat(tsmat,names)

PARAMETERS

Input

* tsmat = a tsmat

* names = a string vector, collecting the names of the ts to add to the tsmat

Output

tsmat = the original tsmat extended with the new ts

DESCRIPTION

Adds a timeseries to a tsmat.

EXAMPLE

load(GROCERDIR+'/data/bdhenderic.dat') // trasnforms Hendry and Ericsson database 
tsmat=db2tsmat(GROCERDIR+'/data/bdhenderic.dat');// trasnforms Hendry and Ericsson database into a tsmat
m1=exp(lm1) // calculate m1 from lm1
tsmat2=addts2tsmat(tsmat,'m1') // add m1 to the tsmat

AUTHOR

Éric Dubois 2018

Report an issue
<< Matrices of Time series Matrices of Time series db2tsmat >>