| 1 | compute.corr(x, iter = 10, th = 0.1)
 | 
| x | |
| iter | |
| th | 
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.
## The function is currently defined as
function (x, iter = 10, th = 0.1) 
{
    fracs <- counts2frac(x)
    V <- variation.mat(fracs)
    ll1 <- basis.var(fracs, V)
    ll2 <- cor.from.basis(V, ll1[["Vbase"]])
    excluded <- NULL
    for (i in 1:iter) {
        ll3 <- exclude.pairs(ll2[["Cor.mat"]], ll1[["M"]], th = th, 
            excluded = excluded)
        excluded <- ll3[["excluded"]]
        if (!ll3[["flag"]]) {
            ll1 <- basis.var(fracs, V, M = ll3[["M"]], excluded = excluded)
            ll2 <- cor.from.basis(V, ll1[["Vbase"]])
        }
    }
    return(list(Vbase = ll1[["Vbase"]], Cor.mat = ll2[["Cor.mat"]], 
        Cov.mat = ll2[["Cov.mat"]]))
  }
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.