Learn R Programming

RVAideMemoire (version 0.9-83-7)

spearman.ci: Confidence interval of a Spearman's rank correlation coefficient

Description

Computes the confidence interval of a Spearman's rank correlation coefficient by bootstraping.

Usage

spearman.ci(var1, var2, nrep = 1000, conf.level = 0.95)

Value

method

name of the test.

data.name

a character string giving the name(s) of the data.

conf.level

confidence level.

rep

number of replicates.

estimate

Spearman's rank correlation coefficient.

conf.int

confidence interval.

Arguments

var1

numeric vector (first variable).

var2

nuermic verctor (second variable).

nrep

number of replicates for bootstraping.

conf.level

confidence level of the interval.

Author

Maxime HERVE <maxime.herve@univ-rennes1.fr>

See Also

Examples

Run this code
var1 <- sample(1:50,15,replace=TRUE)
var2 <- sample(1:50,15,replace=TRUE)
spearman.ci(var1,var2)

Run the code above in your browser using DataLab