cliss {LIStest}R Documentation

Longest increasing subsequence for a bivariate sample

Description

calculate the size of the longest increasing subsequence for the samples of continuous random variables.

Usage

cliss(x, y)

Arguments

x x is a numeric vector of data values
y y is a numeric vector of data values

Value

Integer, the size of the longest increasing subsequence

Author(s)

Jesus Garcia and Veronica Andrea Gonzalez Lopez

References

A nonparametric idependence test for small sample size

Examples

X<-rexp(50) 
Y<-runif(50,0,X)
res<-cliss(X,Y)
res


## The function is currently defined as
function(x,y){
        s<-order(y[order(x)])
        rr<-lis(s)
  }

[Package LIStest version 1.0 Index]