calc_NB_moments | R Documentation |
Calculates the first two moments of the bivariate distribution of NB_model and NB_all
calc_NB_moments(Y, pi, z, weights = NULL)
Y |
Vector of the binary response variable |
pi |
Vector of predicted risks |
z |
Decision threshold at which the NBs are calculated |
weights |
Optinal - observation weights |
Two means, two SDs, and one correlation coefficient. First element is for the model and second is for treating all
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.