loglik_interaction: Negative lok-likelihood in the interaction model

Description Usage Arguments Value Examples

Description

Negative lok-likelihood in the interaction model

Usage

1
2
loglik_interaction(par, O, R, pen, weights_age = NULL,
  weights_cohort = NULL)

Arguments

par

parameters of the 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

Value

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

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)
loglik_interaction(par, O, R)

## End(Not run)

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