Nothing
varCompound <-
function(parent,compound,compoundDist,params,...) {
if (!exists(paste("p",parent,sep=""))) {
return(paste("The parent distribution",parent,"doesn't exist"))
}
if (!is.element(compound,compoundDist)) {
return(paste("The discrete distribution",compound,"doesn't exist"))
}
m1 <- momentCompound(1,parent,compound,compoundDist,params,...)
m2 <- momentCompound(2,parent,compound,compoundDist,params,...)
return(m2-m1^2)
}
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.