Psi_alpha | R Documentation |
Choice of alpha for a numerically stable psi matrix
Psi_alpha(CorY, n, cond.tol = 1e-10)
CorY |
Correlation matrix of dimensions p x p with p the number of species for example. |
n |
number of samples |
cond.tol |
tolerance for the matrix condition number. |
psi: p x p corrected psi matrix
alpha: final alpha value needed to correct the psi matrix
n=30
p=10
S=5
Y=data_from_scratch("tree",p=p,n=n)$data
beta = matrix(1/10,10,10)
psi=Psi_alpha(cor(Y), n)$psi
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.