The workhorse function for the binomial updates in mcen. It uses IRWLS glmnet updates to solve the regression problem.
bin_horse(Y, X, delta, gamma_y, y_clusters, set_length, eps, maxiter)
Returns a matrix of coefficients
the matrix of responses
the matrix of predictors with the intercept included
the tuning parameter for the lasso penalty
the tuning parameter for the ridge fusion penalty
the cluster assignments from the provided clustering algorithm
the size of each cluster corresponding to a given response. r dimensions with each element containing the cluster size of that responses cluster.
the tolerance for conversion normally 1e-5
the maximum number of iterations
Brad Price <brad.price@mail.wvu.edu>