deviances: Deviance

Description Usage Arguments Value Examples

Description

Calculate deviances at provided coefficients

Usage

1
deviances(X, z, py1, coefMat, weights = NULL)

Arguments

X

Input matrix

z

Response vector

py1

True prevalence Pr(Y=1)

coefMat

A coefficient matrix whose column corresponds to a set of coefficients

weights

observation weights. Default is 1 for each observation.

Value

deviances

Examples

1
2
3
data("simulPU")
coef0<-replicate(2,runif(ncol(simulPU$X)+1))
deviances(simulPU$X,simulPU$z,py1=simulPU$truePY1,coefMat = coef0)

PUlasso documentation built on May 2, 2019, 11:40 a.m.