Nothing
loglikgrm <-
function (thetas, constrained) {
betas <- betas.grm(thetas, constrained, ind1, ind2, p)
k <- length(Z)
cpr <- cprobs(betas, Z)
cpr <- lapply(cpr, function (x) log(rbind(x[1, ], diff(x))))
log.p.xz <- matrix(0, nfreqs, k)
for (j in 1:p) {
log.pr <- cpr[[j]]
xj <- X[, j]
na.ind <- is.na(xj)
log.pr <- log.pr[xj, ]
if (any(na.ind))
log.pr[na.ind, ] <- 0
log.p.xz <- log.p.xz + log.pr
}
p.x <- rep(exp(log.p.xz) %*% GHw, obs)
- sum(log(p.x))
}
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.