deviances | R Documentation |
Calculate deviances at provided coefficients
deviances(X, z, py1, coefMat, weights = NULL)
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. |
deviances
data("simulPU")
coef0<-replicate(2,runif(ncol(simulPU$X)+1))
deviances(simulPU$X,simulPU$z,py1=simulPU$truePY1,coefMat = coef0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.