calc.CAT: Calculate the overlap b/w two vectors, for various sizes.

Description Usage Arguments Value Author(s) See Also

Description

see also catplot

Usage

1
  calc.CAT(x, y, sizes)

Arguments

x

usually 2 character vectors, but could be a vector of distinct numbers.

y

usually 2 character vectors, but could be a vector of distinct numbers.

sizes

a numeric vector of sizes at which to determine the overlap b/w x and y. eg c(1,5,10,100) will find out how many values in common b/w x and y for the top 1, 5, 10 or 1000 values in x.

Value

a numeric vector corresponding to the proportion of values in common in x and y for each given size, named by the size used. eg: if you take top 10 from each list, and 5 are in common, the proportion is 0.5

Author(s)

Mark Cowley, 2008-05-15

See Also

catplot catplot.vs.random


drmjc/mjcgraphics documentation built on May 15, 2019, 2:40 p.m.