bin_horse | R Documentation |
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)
Y |
the matrix of responses |
X |
the matrix of predictors with the intercept included |
delta |
the tuning parameter for the lasso penalty |
gamma_y |
the tuning parameter for the ridge fusion penalty |
y_clusters |
the cluster assignments from the provided clustering algorithm |
set_length |
the size of each cluster corresponding to a given response. r dimensions with each element containing the cluster size of that responses cluster. |
eps |
the tolerance for conversion normally 1e-5 |
maxiter |
the maximum number of iterations |
Returns a matrix of coefficients
Brad Price <brad.price@mail.wvu.edu>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.