calc_NB_moments: Calculates the first two moments of the bivariate...

View source: R/voipred.R

calc_NB_momentsR Documentation

Calculates the first two moments of the bivariate distribution of NB_model and NB_all

Description

Calculates the first two moments of the bivariate distribution of NB_model and NB_all

Usage

calc_NB_moments(Y, pi, z, weights = NULL)

Arguments

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

Value

Two means, two SDs, and one correlation coefficient. First element is for the model and second is for treating all


predtools documentation built on June 7, 2023, 5:58 p.m.