Please enable JavaScript to view this site.

Vensim Help

Navigation: Reference Guide > Functions > Data Functions

GET DATA MEDIAN(datavar,start,end) GET the MEDIAN of DATA over a time range

Scroll Prev Top Next More

Returns the mean value that a Data variable takes one over a time range.  If there is no data in the time range, or the variable is not a Data variable then :NA: is returned.

NOTE  The GET DATA … functions are relatively slow and best used inside of INITIAL equations.

Units: GET DATA MEAN(units,time,time) --> units

Example

Median of Sales Data = INITIAL(
GET DATA MEDIAN(sales data,Initial Time, Final Time))

Availability: Not PLE or PLE Plus.

See also: Data Equations, :NA:

Sample model: GET DATA stats.mdl in FunctionExamples