Standard deviation

For questions regarding programming in the EViews programming language.

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

facosta
Posts: 23
Joined: Wed Jul 07, 2010 9:16 am

Standard deviation

Postby facosta » Mon Jan 17, 2011 11:17 am

Hello there.
I am sorry I am confused with something I think it´s simple but I just can´t do.
How can you get the standard deviation and variance for a particular column and row of a given matrix? Do you have to use the function @stdev(x[,s]) or something like that? It doesn´t work to me. I am confused now.
Thanks a lot for the support.
Regards.

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

Re: Standard deviation

Postby EViews Gareth » Mon Jan 17, 2011 11:47 am

The only way to do it is to extract that particular column into a vector, and then find the standard deviation of the vector:

Code: Select all

=@stdev(@columnextract(x,1))

facosta
Posts: 23
Joined: Wed Jul 07, 2010 9:16 am

Re: Standard deviation

Postby facosta » Mon Jan 17, 2011 12:22 pm

Ok. Thank you very much.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest