Calculate the working response in the iterative least square regression
WorkingResp(y, Px, X, beta, intercept = 0)
This function returns the vector of working response.
Design matrix of the logistic model considered.
Binary response of the logistic model considered.
The probability of the reponse to be 1
Vector of coefficients
If there is an intercept
Wencan Zhu, Celine Levy-Leduc, Nils Ternes
Please read https://hastie.su.domains/Papers/glmnet.pdf for more details