qut | R Documentation |
automatic selection of nuclear norm regularization parameter
qut(Y, cov, lambda2 = 0, q = 0.95, N = 100, reff = T, ceff = T)
Y |
A matrix of counts (contingency table). |
cov |
A (np)xK matrix of K covariates about rows and columns |
lambda2 |
A positive number, the regularization parameter for covariates main effects |
q |
A number between 0 and 1. The quantile of the distribution of lambdaQUT to take. |
N |
An integer. The number of parametric bootstrap samples to draw. |
reff |
[boolean] whether row effects should be fitted, default value is TRUE |
ceff |
[boolean] whether column effects should be fitted, default value is TRUE |
the value of lambdaQUT to use in LoRI based on QUT method.
X = matrix(rnorm(30), 15)
Y = matrix(rpois(15, 1:15), 5)
lambda = qut(Y,X, 10, N=10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.