PIR_loglik {ARPobservation}R 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>


[Package ARPobservation version 1.2.2 Index]