calc.sqldata.cor: Calculate Pearson Correlation Matrix Between Seasons

Description Usage Arguments Value Examples

View source: R/prior_dengue_fxns.R

Description

calc.sqldata.cor Calculates an nyears by nyears correlation matrix for dengue incidence

Usage

1
2
calc.sqldata.cor(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

corrMAT An nyear x nyears matrix with the Pearson correlation values

Examples

1
2
calc.cor(mydata= mydata, all_years_epi = al_years_epi, cases = all_years_epi$model$epi, nfit = nfit)
calc.cor(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.