link <- 'cloglog'
attr(link, which="p") <- make.link(link)
nsuccess <- list(c(rep(0,5),352,479,530,291,101,17))
ntrials <- list(c(rep(10,11)))
parameter <- c(0.06363398,-0.47085362)
LL.gradient(parameter, model.type = "p and scale-factor",
model.name = "EPPM extended binomial", link = link, ntrials = ntrials, nsuccess = nsuccess,
covariates.matrix.p = matrix(c(1), nrow=1),
covariates.matrix.scalef = matrix(c(1), nrow=1),
offset.p = c(0), offset.scalef = c(0), weights = list(c(rep(1,11))),
grad.method = "Richardson")
Run the code above in your browser using DataLab