name of the series matrix

Use this forum to post questions about syntax problems or general programming issues. Questions on implementing a particular aspect of econometrics should go in "Econometrics Issues" below.
Akawa
Posts: 4
Joined: Thu Jun 22, 2017 8:06 am

name of the series matrix

Unread post by Akawa »

Hi,
I have a simple question: What is the name of my data matrix, that is, those loaded with the command "data". I would like to know the number of columns/series loaded in Rats but don't know the argument in place of "A"

Code: Select all


compute col =  %cols(?)

Thanks
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: name of the series matrix

Unread post by TomDoan »

There's no "matrix" underlying the series---each series is separately organized (since different series can have different lengths and usable ranges). If you need to know how many series there are at any given time, you could do

compute nseries=%size(%slike("*"))

(%SLIKE(string) returns a list of all series matching a given pattern, where "*" matches anything). If you need to actually create a working matrix out of series, use the MAKE instruction.
Post Reply