grouplasso_gt_grid | R Documentation |
Fit grouplasso logistic regression estimator with group testing data over a grid of lambda values
grouplasso_gt_grid( Y, Z, Se, Sp, X, E.approx = FALSE, groups, n.lambda, lambda.min.ratio, lambda.max.ratio = 1, w, tol = 1e-04, maxiter = 500, report.prog = FALSE )
Y |
Group testing output in the format as output by one of the functions |
Z |
Group testing output in the format as output by one of the functions |
Se |
A vector of testing sensitivities, where the first element is the testing specificity for pools and the second entry is the test specificity for individual testing, if applicable. |
Sp |
A vector of testing specificities, where the first element is the testing specificity for pools and the second entry is the test specificity for individual testing, if applicable. |
X |
the matrix with the observed covariate values (including a column of ones for the intercept) |
E.approx |
a logical indicating whether the conditional expectations in the E-step should be computed approximately or exactly. |
groups |
a vector indicating to which group each covariate belongs |
n.lambda |
the number of lambda values desired |
lambda.min.ratio |
ratio of the smallest lambda value to the smallest value of lambda which admits no variables to the model |
lambda.max.ratio |
ratio of the largest lambda value to the smallest value of lambda which admits no variables to the model |
w |
group-specific weights for different penalization of different groups |
tol |
a convergence criterion |
maxiter |
the maximum allowed number of iterations (EM steps) |
report.prog |
a logical. If |
a list containing the fits over a grid of lambda values as well as the vector of lambda values
grouplasso_gt_data <- get_grouplasso_data(n = 1000, response = "gt") grouplasso_gt_grid.out <- grouplasso_gt_grid(Y = grouplasso_gt_data$Y$I, Z = grouplasso_gt_data$Y$A, Se = grouplasso_gt_data$Y$Se, Sp = grouplasso_gt_data$Y$Sp, X = grouplasso_gt_data$X, E.approx = grouplasso_gt_data$Y$E.approx, groups = grouplasso_gt_data$groups, n.lambda = 10, lambda.min.ratio = 0.01, lambda.max.ratio = 0.50, w = grouplasso_gt_data$w, tol = 1e-3, maxiter = 500, report.prog = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.