loglik_aci_sel: Negative lok-likelihood in the age-cohort-interaction model...

Description Usage Arguments Value Examples

Description

Negative lok-likelihood in the age-cohort-interaction model with constaints

Usage

1
2
3
4
5
loglik_aci_sel(par, O, R, sel_array)

score_aci_sel(par, O, R, sel_array)

hessian_aci_sel(par, O, R, sel_array)

Arguments

par

parameter of the age-cohort-interaction 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

sel_array

an array defining the selection found by the adaptive ridge procedure. (see aridge_solver_aci)

Value

The vector of derivatives of the negative log-likelihood as described in TODO NAME OF REFERENCE SHEET

Examples

1
2
3
4
5
6
7
## Not run: 
par <- rnorm(ncol(O) * nrow(O))
loglik_aci_sel(par, O, R) # length 1 vector
score_aci_sel(par, O, R) # vector of length (ncol(O) + nrow(O))
hessian_aci_sel(par, O, R) # square matrix of dimension (ncol(O) + nrow(O))

## End(Not run)

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