Usage
gelnet.logreg.obj(w, b, X, y, l1, l2, d = rep(1, ncol(X)),
P = diag(ncol(X)), m = rep(0, ncol(X)), balanced = FALSE)
Arguments
w
p-by-1 vector of model weights
X
n-by-p matrix of n samples in p dimensions
y
n-by-1 binary response vector sampled from {0,1}
l1
L1-norm penalty scaling factor $\lambda_1$
l2
L2-norm penalty scaling factor $\lambda_2$
d
p-by-1 vector of feature weights
P
p-by-p feature-feature penalty matrix
m
p-by-1 vector of translation coefficients
balanced
boolean specifying whether the balanced model is being evaluated