################################################################
Pi_Zj_Zcut_new <- function(q, mean, sd, wl0) {
a <- wl0 * pnorm(q, mean, sd) ################################################################
if(sum(a) == 0) return(wl0)
return(a / sum(a))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.