View source: R/check_dim_matrix.R
check_dim_matrix | R Documentation |
Return parameter setting for subspace function
check_dim_matrix(x, rnk = NA, verbose = FALSE)
x |
A numeric real-valued matrix with n number of samples and p number of features. If p>n, a warning message is generated and the transpose of x is used. |
rnk |
The number of right singular vectors to estimate. rnk must be smaller or equal to max(nrow(x),ncol(x)). |
verbose |
output message |
Returns a list with entries:
The number of degrees of freedom of x.
The number of dimensions of x.
The samples to variance ratio: equals to ndf divided by pdim.
The number of right singular vectors estimated.
A logical value indicating whether the matrix x is transposed.
[checkDesignMatrix()] from Random Matrix Theory pacakge credit to Gregory Giecold and Lionel Ouaknin.
x <- x_sim(n = 100, p = 150, ncc = 10, var = c(rep(10, 5), rep(1, 5))) params <- check_dim_matrix(x, rnk = 40)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.