Name

histg — plots as an histogram a probability distribution function

CALLING SEQUENCE

histg(namey,n,color,wind)

PARAMETERS

Input

• namey = a time series, a real (nx1) vector or a string equal to the name of a time series or a (nx1) real vector between quotes

• n= # of bars of the histogram

• color = numerical representation of the color used for the bars

• wind = the window number

Output

• nothing (printed on a graphic window)

DESCRIPTION

Plots as an histogram the probability distribution function of a variable.

EXAMPLE

load(GROCERDIR+'/macros/grocer/db/bdhenderic.dat');
1) histg('delts(ly)',10,2)
2) histg('delts(ly)',20,6,6);
 
 
Example 1 provides the deciles of the variable delts(ly) with color blue (color numbered 2). Example 2 takes the same variables but cut the distribution into 20 pieces, with color pink (color numbered 6) and on window # 6.
               

AUTHOR

Eric Dubois 2007