@Stdev and DB

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

tchaithonov
Posts: 168
Joined: Mon Apr 13, 2009 7:39 am
Location: New York City

@Stdev and DB

Postby tchaithonov » Sun Mar 04, 2012 2:52 pm

Hi Guys, how are you doing?

I am trying to calculate the statistics of a bunch of independent variables located in the DB, and it seems to me that if I do the calculation with variables directly from the database, EViews would give me a "Syntax Error" response.

e.g.,
scalar z = @stdev(abc) ' This one is okay, but ...
scalar z = @stdev(abc::abc) ' This one would give me a syntax error
series z = @stdev(abc::abc) ' This one is okay too, but I only want 1 number....
Any ideas?

Tchaithonov

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

Re: @Stdev and DB

Postby EViews Gareth » Sun Mar 04, 2012 7:52 pm

Probably just the way it is. Essentially series assignment is much more intelligent than scalar assignment, and so series assignment is able to read directly from the database, whereas the scalar isn't.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 0 guests