delta {ZIprop}R Documentation

The scalar delta

Description

Calculate the scalar delta. This parameter comes from the optimal Spearman’s correlation when the rank of two vectors X and proba are equal except on a given set of indices. In our context, this set correspond to the zero-values of the vector proba.

Usage

delta(X, proba)

Arguments

X

a vector.

proba

a zero-inflated proportions response.

Value

Delta the scalar Delta calculated for the vector x and the vector proba.

Examples

X = rnorm(100)
proba = runif(100)
proba[sample(1:100,80)]=0
Delta = delta(X,proba)
print(Delta)

[Package ZIprop version 0.1.1 Index]