sbma: Calculates the Symetrized Blest Measure of Agreement between...

Description Usage Arguments Details References Examples

Description

The Symetrized Blest Measure of Agreement is an alternative measure of rank correlation (similar to Kendall's Tau and Spearman's Rho). This correlation measure is more sensitive to changes in the order of the first elements of a vector (see examples).

Usage

1
2
3
4
5
6
7
sbma(sample1, sample2, absolute = TRUE, ...)

## Default S3 method:
sbma(sample1, sample2, absolute = TRUE, ...)

## S3 method for class 'LHS'
sbma(sample1, sample2, absolute, ...)

Arguments

sample1

The first vector or LHS object to be compared.

sample2

The second vector or LHS object to be compared.

absolute

Logical. Should the absolute values of sample1 and sample2 be used in the calculation?

...

Additional arguments.

Details

This function calculates the SBMA between two samples or two LHS objects. In the second case, what is compared is the values of the "prcc" component of each Hypercube.

References

Maturi, T.A. and Elsayigh, A. 2010. A comparison of correlation coefficients via a three-step bootstrap approach. Journal of Mathematics Research 2(2): 3-10.

Examples

1
2
3
4
5
6
7
8
# SBMA is only affected by the rank of the values inside each vector
sbma(c(1,2,3,4), c(2,3,4,5))
# Changes in the first positions: high impact on the SBMA
sbma(c(1,2,3,4), c(2,1,3,4))
cor(c(1,2,3,4), c(2,1,3,4), method="spearman")
# Changes in the last positions: low impact on the SBMA
sbma(c(1,2,3,4), c(1,2,4,3))
cor(c(1,2,3,4), c(1,2,4,3), method="spearman")

Example output

Loading required package: Hmisc
Loading required package: lattice
Loading required package: survival
Loading required package: Formula
Loading required package: ggplot2

Attaching package: 'Hmisc'

The following objects are masked from 'package:base':

    format.pval, units

[1] 1
[1] 0.72
[1] 0.8
[1] 0.88
[1] 0.8

pse documentation built on May 2, 2019, 12:56 a.m.