PIR_loglik: Calculate log-likelihood

Description Usage Arguments Value Author(s)

View source: R/PIR-APP.R

Description

Calculates the log-likelihood of within-session PIR data

Usage

1
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 May 1, 2021, 1:08 a.m.