penC: Solve the penalized logistic regression.

View source: R/RcppExports.R

penCR Documentation

Solve the penalized logistic regression.

Description

Solve the penalized logistic regression.

Usage

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 \lambda for \beta_1 and \beta_2.

pen

1: MCP estimator; 2: SCAD estimator.

Value

A numeric vector, estimate of beta


CSTE documentation built on April 4, 2025, 12:27 a.m.

Related to penC in CSTE...