hpv_loglik: Joint log-likelihood for the HPV model

Description Usage Arguments

View source: R/hpv_loglik.R

Description

Computes the joint log-likelihood for the HPV model

Usage

1
2
3
4
5
6
hpv_loglik(
  data,
  theta,
  phi,
  eta_modules = stats::setNames(c(1, 1), c("pois", "binom"))
)

Arguments

data

data frame with n_obs rows and four columns: "nhpv", "Npart", "ncases", "Npop"

theta

matrix of dimension c(2, 1). Two parameters defining the linear relation between HPV prevalence and cancer incidence in the HPV model.

phi

matrix of dimension c(n_obs, 1). The HPV prevalence parameter of each population. values in (0,1)

eta_modules

Named tuple specifying the degree of influence for the "pois" and "binom" modules in the HPV model.


christianu7/aistats2020smi documentation built on March 7, 2021, 2:40 p.m.