Home : GMED
Q10466 - INFO: GMED

GMED returns an aggregate median statistics for an input variable.
The number of values that are aggregated is determined based on the frequency of the input variable.

SYNTAX:

GMED(Cx)
where :
Cx is a input conditional variable x.

NOTES:

The input variable frequency should be less than the result variable frequency. It makes sense to aggregate 5 one-minutely values into a 1 five-minute variable, but not the other way around.

EXAMPLE:

V6041 = GMED(C6000)

where V6000 is a 15 minute variable, and V6041 is an hourly variable.

 

Example with MDL Rules:

V = GMED(C5262)

On calculated variables, it is possible to elect to cascade MDL rules or not. Below is an example of cascading MOST frequent MDL symbol, ALL MDL symbols, and NONE or no MDL symbols. For this example, our data is in an hourly variable (C5262) and our calculated variables are all 4 hour variables.

V9661 - Most Frequent MDL Symbol
V9662 - All MDL Symbols
V9663 - No MDL Symbols

 

 

Here is the data, in variable 5262, that the calculated variable above is using:

Related Articles
Q10460 - INFO: GAVG
Q10464 - INFO: GMAX
Q10465 - INFO: GMIN
Q10468 - INFO: GSUM
Q10475 - INFO: GGM

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 10/1/2007 2:07 PM.
Last Modified on 6/14/2011 9:04 AM.
Last Modified by No Author Name Available!.
Article has been viewed 5852 times.
Rated 4 out of 10 based on 10 votes.
Print Article
Email Article