Navigation Banner
 

Category Batch language command
  Used to define a category (rate variation) variable.
Syntax  category id = (number of intervals, weights, method for representation, density, cumulative, left bound, right bound,optional mean cumulative function);
Notes
-number of intervals: number of different categories;

-weights: probability for each interval. Could be set to Equal, or a single row matrix of weights, or a formula in terms of _n_, where _n_ runs from 0 to number of intervals:

-method for representation: How to pick a representative for each category-MEAN, MEDIAN or SCALED_MEDIAN. Only meaningful for variables coming from continuous distributions. SCALED_MEDIAN is the same as median, except the mean of the discrete approximation is scaled to match the mean of the continuos generator.

-density: the formula for the generating continuos density function (in terms of _x_). Leave blank to specify a discrete distribution

-cumulative: the formula for the cumulative probability function (in terms of _x_). Leave blank if not known. Specify a row matrix of values for a discrete distribution here

-left bound: left bound for _x_ in the continuous distribution

-right bound: right bound for _x_ in the continuous distribution

-optional mean cumulative function: if known, the formula for mean over interval (left bound,_x_) in terms of _x_.

Examples
See files in 'Examples'.
 Last modified: 8/19/2002

 
Sergei L. Kosakovsky Pond and Spencer V. Muse, 1997-2002