cor.boot.ci: Confidence interval for a correlation based on a bootstrap.

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/cor.boot.ci.r

Description

Returns a bootstrap confidence interval for any of the correlations available in the base R cor function.

Usage

1
cor.boot.ci(x, y, method = "spearman", conf = 0.95, nbs = 3000)

Arguments

x

n by 1 vector

y

n by 1 vector

method

Which correlation to use. Argument passed to cor.

conf

Confidence level.

nbs

number of bootstrap samples to base CI on.

Details

Obtains a percentile bootstrap confidence interval. The bootstrap samples are obtained via the function boot.

Value

A confidence interval.

Author(s)

John Kloke [email protected], Joseph McKean

See Also

See Also as cor

Examples

1
2

kloke/npsm documentation built on May 18, 2017, 9:42 p.m.