varexp | R Documentation |
Calculates experimental population-weighted semi-variograms from disease incidence rates. For now is only implemented in omnidirectional case.
varexp(dfobj, lag, nlags)
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 |
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.