varexp: Calculates experimental population-weighted semi-variogram

View source: R/load.R

varexpR Documentation

Calculates experimental population-weighted semi-variogram

Description

Calculates experimental population-weighted semi-variograms from disease incidence rates. For now is only implemented in omnidirectional case.

Usage

varexp(dfobj, lag, nlags)

Arguments

dfobj,

string, name of list, output of function irates()

lag,

numeric, the lag distance used for semi-variogram estimates

nlags,

numeric, the number of lags to calculate semi-variogram

Value

The function returns a list with the variance and semi-variogram estimates weighted by population size at nlags:

weightsvar

is the value of the weighted population variance

semivar

a dataframe with a vector of distances, a vector of experimental semivariogram values and number of pairs


maluicr/blockdss documentation built on Nov. 22, 2023, 11:42 a.m.