Learn R Programming

SpatialEpi (version 1.2.3)

computeAllLogLkhd: Compute log likelihood for all single zones

Description

For all n.zones single zones, compute Likelihood ratio test statistic

Usage

computeAllLogLkhd(observedCases, expectedCases, nearestNeighborsList, nZones, logLkhdType)

Arguments

observedCases

Vector of length n of cases

expectedCases

Vector of length n of expected cases

nearestNeighborsList
nZones

number of single zones

logLkhdType

type of likelihood: either "poisson" or "binomial"

Value

Vector of length nZones with LRT for each single zone

See Also

poissonLogLkhd, binomialLogLkhd