Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: stats
See also: quantilecl meancl cdfn

Quantlet: cdfcl
Description: Computes the values of the cumulative distribution function of classificated data at the point x

Usage: Fx = cdfcl(gr, fr, x)
Input:
gr m x n grid matrix, each column must be ordered ascendently
fr (m-1) x n matrix of frequencies for each bin in each column
x n x 1 vector of x values for each column or a scalar when x is the same for every column
Output:
Fx 1 x n row vector - values of the cummulative distribution function for each column

Note:

Example:
library("stats")
randomize(666)
; make four columns each with 15 random intervals
gr = sort(normal(5,4)|5+normal(5,4)|10+normal(5,4),0)
gr[,3] = 10 + gr[,3]
fr = ceil(30*uniform(14)~20*uniform(14,2)~2*uniform(14))
x = #(-1,11,15,0.4)
cdfcl(gr,fr,x)

Result:
Contents of Fx
[1,]  0.13952  0.90465  0.46134  0.23013



Author: K. Komorad, W. Haerdle, 20010716 license MD*Tech
(C) MD*TECH Method and Data Technologies, 05.02.2006