Extracting matrix element

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

nectar
Posts: 14
Joined: Wed Jun 02, 2010 4:06 pm

Extracting matrix element

Postby nectar » Thu Jun 23, 2011 8:20 am

Can I extract elements of a matrix separately?

Thanks,

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Extracting matrix element

Postby EViews Gareth » Thu Jun 23, 2011 9:04 am

Code: Select all

scalar myval = mymatrix(1,1)
extracts the 1,1 element.

nectar
Posts: 14
Joined: Wed Jun 02, 2010 4:06 pm

Re: Extracting matrix element

Postby nectar » Thu Jun 23, 2011 9:11 am

Thanks a bunch. I knew it had to be an scalar, just didn't find right example in the manual.


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 1 guest