Learn R Programming

WLogit (version 2.1)

WorkingResp: Calculate the working response

Description

Calculate the working response in the iterative least square regression

Usage

WorkingResp(y, Px, X, beta, intercept = 0)

Value

This function returns the vector of working response.

Arguments

X

Design matrix of the logistic model considered.

y

Binary response of the logistic model considered.

Px

The probability of the reponse to be 1

beta

Vector of coefficients

intercept

If there is an intercept

Author

Wencan Zhu, Celine Levy-Leduc, Nils Ternes

See Also

Please read https://hastie.su.domains/Papers/glmnet.pdf for more details