penC: Solve the penalized logistic regression.

Description Usage Arguments Value

View source: R/RcppExports.R

Description

Solve the penalized logistic regression.

Usage

1
penC(x, y, off, beta, lam, pen)

Arguments

x

samples of covariates which is a n*p matrix.

y

samples of binary outcome which is a n*1 vector.

off

offset in logistic regression.

beta

initial estimates.

lam

value of the lasso penalty parameter λ for β_1 and β_2.

pen

1: MCP estimator; 2: SCAD estimator.

Value

A numeric vector, estimate of beta


CSTE documentation built on Dec. 16, 2021, 9:07 a.m.

Related to penC in CSTE...