Fast IRLS for binomial logit with class weights
cpp_irls_binomial(TT, ybin, w_class = NULL, maxit = 50L, tol = 1e-08)list(beta = A-vector, b = scalar intercept, fitted = n-vector, iter = integer, converged = logical)
n x A numeric matrix of latent scores (no intercept column)
integer vector of {0,1} labels (length n)
optional length-2 numeric vector: weights for classes c( w0, w1 )
max IRLS iterations
relative tolerance on parameter change