Nothing
ppolicy_loss <-
function(l,mu,delta,lambda,theta,family,y.max=20,zt=TRUE){
out<-vector(length=length(l))
if (length(mu)==1) mu=rep(mu,length(l))
if (length(lambda)==1) lambda=rep(lambda,length(l))
for (i in 1:length(l)){
#cat(paste("observation no ",i,"\n"))
foo<-function(s){
dpolicy_loss(s,mu[i],delta,lambda[i],theta,family,y.max,zt)
}
out[i]<-integrate(foo,0,l[i])$value
}
return(out)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.