powered by
Calculate the indicator for a vector X and a zero-inflated proportions response proba.
X
proba
indicator(X, proba)
a vector.
a zero-inflated proportions response.
a scalar represents the performance indicator and the vector proba.
# 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