checkInputs | R Documentation |
check inputs for consistency
checkInputs( pop, cases, weather, spi, spei, target.date, start.year, in.seed = NULL, lag.lengths = c(12, 18, 24, 30, 36) )
pop |
County populations, a data frame with 3 variables County , fips (5 characters), year , pop100K |
cases |
data on annual numbers of human cases in each county. A data.frame with 3 variables, County , year , and cases . |
weather |
monthly temperature and precipitation data for for each county. A data.frame with County , fips (5 characters), year , month , tmean , and ppt . |
spi |
monthly values of the Standardized Precipitation Index for each county. County , fips (5 characters), year , month , spi . |
spei |
monthly values of the Standardized Precipitation and Evapotranspiration Index for each county. County , fips (5 characters), year , month , spei . |
target.date |
The last date to include for calculation of lags, a character string with ISO XXX format (yyyy-mm-dd). |
start.year |
The first year to include in the training data. Should be coercible to integer. |
in.seed |
If not NULL, the starting number for the random number generator. This makes the results repeatable. If NULL, treats cases as actual data |
lag.lengths |
the number of months to go backwards when creating lag matrices. Numeric vector. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.