Learn R Programming

ZIprop (version 0.1.1)

delta: The scalar delta

Description

Calculate the scalar delta. This parameter comes from the optimal Spearman<U+2019>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

Run this code
# NOT RUN {
X = rnorm(100)
proba = runif(100)
proba[sample(1:100,80)]=0
Delta = delta(X,proba)
print(Delta)
# }

Run the code above in your browser using DataLab