#' @export
strat.diffr.ppn<-function(dat,cond,by.stratum=FALSE)
{
for(i in 1:dat$M) dat[[i]]$y.value<-(eval(parse(text=paste("dat[[i]]$y.value",cond,sep="")))*1)
est<-strat.diffr.tot(dat,by.stratum=by.stratum)
if(by.stratum) {
est$est<-est$est/sum(dat$N)
est$est.by.stratum<-est$est.by.stratum/dat$N
} else est<-est/sum(dat$N)
est
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.