Solve the penalized logistic regression.
penC(x, y, off, beta, lam, pen)samples of covariates which is a \(n*p\) matrix.
samples of binary outcome which is a \(n*1\) vector.
offset in logistic regression.
initial estimates.
value of the lasso penalty parameter \(\lambda\) for \(\beta_1\) and \(\beta_2\).
1: MCP estimator; 2: SCAD estimator.
A numeric vector, estimate of beta