Q_mod <- function(Q){ for(i in 1:length(diag(Q))){ if(diag(Q)[i] < 0){ Q[,i] <- -1*Q[,i] } } Q }
Add the following code to your website.
REMOVE THIS Copy to clipboard
For more information on customizing the embed code, read Embedding Snippets.