#'@title Make Init L and F on similar scale
#'@param L N by K loading matrix
#'@param FF p by K factor matrix
#'@export
adjLF = function(L,FF){
gammaL = colSums(L)
gammaF = colSums(FF)
adjScale = sqrt(gammaL*gammaF)
L = t(t(L) * (adjScale/gammaL))
FF = t(t(FF) * (adjScale/gammaF))
return(list(L_init = L, F_init=FF))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.