Histogram-func
This function generates data bins from vector vd in the specified range from min to max. The bin width is equal to inc. The function will include values that fall on the lower edge of the bin, however the function will put data that falls on the upper edge into the next higher bin.
dataset histogram(dataset vd, double inc, double min, double max)
vd
inc
min
max
Returns a vector containing the number of elements within every bin.
newbook; wks.ncols=3; col(A)=normal(100); col(B)={-1.375:0.25:1.375}; col(C)=histogram(col(a), 0.25, -1.5, 1.5); col(B)[L]$ = Bin Center; col(C)[L]$ = Count; plotxy (2,3) plot:=203; set %c -pfb 2; set %c -pfp 3;