loglik_ac: Negative lok-likelihood in the age-cohort model

Description Usage Arguments Value See Also Examples

Description

Negative lok-likelihood in the age-cohort model

Usage

1
loglik_ac(par, O, R)

Arguments

par

parameters of the age-cohort model in the form c(mu, alpha and beta)

O

Observed events as returned by exhaustive_stat_2d

R

Time at risk as returned by exhaustive_stat_2d

Value

The negative log-likelihood as described in TODO NAME OF REFERENCE SHEET

See Also

Other ac_likelihood: hessian_ac, hessian_interaction, score_ac, solver_ac

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
J <- 10
K <- 15
set.seed(0)
O <- matrix(rpois(K * J, 2), K, J)
R <- matrix(rpois(K * J, 10), K, J)
par <- rnorm(J + K - 1)
loglik_ac(par, O, R)

## End(Not run)

goepp/hazreg documentation built on June 7, 2019, 4:03 a.m.