calc.sqldata.dist: Calculate Euler Distance Matrix Between Seasons

Description Usage Arguments Value Examples

View source: R/prior_dengue_fxns.R

Description

calc.dist Calculates an nyears X nyears Euler distance matrix for the incidence profiles

Usage

1
2
calc.sqldata.dist(mydata = NULL, all_years_epi = NULL, cases = NULL,
  nfit = NULL)

Arguments

mydata

A dataframe with all the available data for this DICE run

all_years_epi

the epi data for all years

cases

AN array with the entire time series of incidence

nfit

The number of data points used when calculating the correlation

Value

distMAT An nyear x nyears matrix with Euler distance values

Examples

1
2
calc.sqldata.dist(mydata= mydata, all_years_epi = al_years_epi, cases = all_years_epi$model$epi, nfit = nfit)
calc.sqldata.distr(mydata= mydata, all_years_epi = al_years_epi, cases = all_years_epi$fit$epi[,iregion], nfit = nfit)

predsci/DICE documentation built on Aug. 9, 2019, 9:41 a.m.