fwci: Takes two numerical vectors and computes the concordance...

View source: R/fCI.R

fwciR Documentation

Takes two numerical vectors and computes the concordance index between them by comparing the order of values for two pairs of data each time

Description

This function returns the concordance index and simulated p-value.

Usage

fwci(x, y, dx = 0, dy = 0, n.simulate = 1000, mc.cores = 1)

Arguments

x

a numeric vector

y

a numeric vector

dx

The minimunm reliable difference between two values in the x vector to be considered as significantly

dy

The minimunm reliable difference between two values in the y vector to be considered as significantly

n.simulate

number of simulation for p value computation, default 1000. If set to 0 only CI will be return

mc.cores

number of cores for parallel processing, default 1

Value

a list of concordance index and its pvalue

Author(s)

Arvind Mer

Examples

data("iris")
fwci(x=iris$Sepal.Length, y=iris$Sepal.Width, dx=0.1, dy=0.5)


bhklab/wCI documentation built on Jan. 26, 2024, 5:36 p.m.