initialize.theta <-
function (data.y, data.x, pi.start, lambda.start)
{
pi.hat <- pi.start
lambda.hat <- lambda.start
alpha.hat <- apply(data.y, 2, mean)
theta.hat <- list(alpha.hat = alpha.hat, pi.hat = pi.hat,
lambda.hat = lambda.hat)
return(theta.hat)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.