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: covcl meancl

Quantlet: varcl
Description: Computes the variance of elements of a given interval bounds matrix (classified data)

Usage: variance = varcl(gr,fr)
Input:
gr a matrix of interval bounds
fr a matrix of interval frequencies
Output:
variance variance of gr as a row vector

Note:

Example:
library("stats")
x=#(1,5,7,9,11,15,20,21,25,29)~(1:10)~#(1,3,8,9,10,13,18,20,21,50)
y=#(1,6,4,3,15,10,9,4,5)~(1:9)~#(5,1,5,1,5,1,5,1,5)
varcl(x, y)

Result:
Contents of variance
[1,]   39.622   4.8889   118.95



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