scMANOVA performs Multivariate ANalysis Of VAriance (MANOVA) inference and test with ridge regularization in presence of
semicontinuous high-dimensional data. The test is based on a Likelihood Ratio Test statistic
and the p-value can be computed using either asymptotic distribution (p.value.perm = FALSE)
or via permutation procedure (p.value.perm = TRUE). There is the possibility to provide
as input the regularization parameters or to choose them through an optimization procedure.
scMANOVA(x, n, lambda = NULL, lambda0 = NULL, lambda.step = 0.1,
ident = FALSE, tol = 1e-08, penalty = function(n, p) log(n),
B = 500, p.value.perm = FALSE, fixed.lambda = FALSE,
fixed.lambda0 = FALSE, ...)An object of class scMANOVA which is a list with the following components
matrix. Estimated proportion of missing values for each group
matrix. Estimated mean vector for each group
matrix. Estimated covariance matrix with ridge regularization
matrix. Estimated covariance matrix by maximum likelihood
vector. Estimated proportion of missing values under the null hypothesis
vector. Estimated mean vector under the null hypothesis
matrix. Estimated covariance matrix with ridge regularization under null hypothesis
matrix. Estimated covariance matrix by maximum likelihood under null hypothesis
vector or NULL. columns removed in the continuous part of the log-likelihood dues to insufficient number of observations in each group
scalar. Log-likelihood for the discrete part of the model
scalar. Log-likelihood
scalar. Log-likelihood for the discrete part of the model under the null hypothesis
scalar. Log-likelihood under null hypothesis
scalar. Wilks statistics
scalar. Regularization parameter
scalar. Regularization parameter under null hypothesis
scalar. Model degree of freedom
scalar. Model degree of freedom under null hypothesis
scalar. Information criteria
scalar. Information criteria under null hypothesis
scalar. p-value of the Wilks statistic
data.frame or matrix of data with units on the rows and variables on the columns
vector. The length corresponds to the number of groups, the elements to the number of observations in each group
NULL, a scalar or a vector of length 2. Ridge regularization parameter. The optimal value of lambda is searched in the interval [0,100] if NULL, and in the specified interval when it is a vector of length 2, otherwise it is used as the optimal value
NULL, a scalar or a vector of length 2. Ridge regularization parameter under null hypothesis. The optimal value of lambda0 is searched in the interval [0,100] if NULL, and in the specified interval when it is a vector of length 2, otherwise it is used as the optimal value
scalar. Step size used in the optimization procedure to find the smallest value of lambda (and lambda0) that makes the covariance matrices, under the alternative and under the null hypotheses, non singular
logical. If TRUE, lambda times the identity matrix is added to the raw estimated covariance matrix, if FALSE the diagonal values of the raw estimated covariance matrix are used instead
scalar. Used in the optimization procedure to find the smallest value of lambda (and lambda0) that makes the covariance matrices, under the alternative and under the null, non singular
function with two arguments: sample size (n) and number of variables (p) used as penalty function in the definition of the Information Criterion to select the optimal values for lambda and lambda0
scalar. Number of permutations to run in the permutation test
logical. If TRUE a p-value from a permutation test is evaluated, otherwise an asymptotic value is reported
logical. If TRUE the optimal values for lambda is evaluated just once for the observed dataset and kept fixed during the permutation test, otherwise, an optimal value is evaluated for each permuted datsets
logical. If TRUE the optimal values for lambda0 is evaluated just once for the observed dataset and kept fixed during the permutation test, otherwise, an optimal value is evaluated for each permuted datsets
further parameters passed to function scMANOVApermTest
Elena Sabbioni, Claudio Agostinelli and Alessio Farcomeni
Elena Sabbioni, Claudio Agostinelli and Alessio Farcomeni (2025) A regularized MANOVA test for semicontinuous high-dimensional data. Biometrical Journal, 67:e70054 DOI <doi:10.1002/bimj.70054> arXiv DOI <doi:10.48550/arXiv.2401.04036>
scMANOVAestimation and scMANOVApermTest
set.seed(1234)
n <- c(5,5)
p <- 20
pmiss <- 0.1
x <- scMANOVAsimulation(n=n, p=p, pmiss=pmiss)
res.asy <- scMANOVA(x=x, n=n) # Asymptotic p.value
res.asy
# \donttest{
res.perm <- scMANOVA(x=x, n=n, p.value.perm=TRUE) # p-value by permutation test
res.perm
# }
Run the code above in your browser using DataLab