PIR_loglik: Calculate log-likelihood

View source: R/PIR-APP.R

PIR_loglikR Documentation

Calculate log-likelihood

Description

Calculates the log-likelihood of within-session PIR data

Usage

PIR_loglik(param, U, c, d)

Arguments

param

vector of parameter values logit(prevalence), log(incidence)

U

a vector containing interval-level PIR data

c

the length of the active interval

d

the length of the recording interval

The vector U should only contain values of 1 or 0. c must be a positive value. d must be some non-negative value. Setting d equal to zero represents a PIR observation where no time was set aside for recording.

Value

The value of the log-likelihood

Author(s)

Daniel Swan <dswan@utexas.edu>


ARPobservation documentation built on Aug. 25, 2023, 5:19 p.m.