scaleThetaFromInf <- function(min, max, theta) {
new <- theta
for (i in 1:length(theta)) {
if (theta[i]==Inf) {
new[i] <- max
}
else {
new[i] <- (max-min)*exp(theta[i])/(1+exp(theta[i]))+min
}
}
return(new)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.