R/coord.R

Defines functions coord

Documented in coord

coord <- function(res, x){

     x <- x/sum(x)
     pi <- margI(x)
     pj <- margJ(x)
     pk <- margK(x)
     res$a <- diag(1/sqrt(pi)) %*% res$a	
     res$b <- diag(1/sqrt(pj)) %*% res$b
     res$cc <- diag(1/sqrt(pk)) %*% res$cc
     res
}

Try the CA3variants package in your browser

Any scripts or data that you put into this service are public.

CA3variants documentation built on Oct. 10, 2022, 5:07 p.m.