Learn R Programming

ZIprop (version 0.1.1)

indicator: The performance indicator

Description

Calculate the indicator for a vector X and a zero-inflated proportions response proba.

Usage

indicator(X, proba)

Arguments

X

a vector.

proba

a zero-inflated proportions response.

Value

a scalar represents the performance indicator and the vector proba.

Examples

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

Run the code above in your browser using DataLab