fit.stem: Estimation using Spatio-Temporal Epidemic Model (STEM)

Description Usage Arguments

View source: R/fit.stem.R

Description

This function implement the model fitting of the spatiotemporal epidemic model.

Usage

1
2
3
4
5
6
7
fit.stem(
  cov.infec,
  cov.death,
  data = list(),
  b1.type = "cons",
  cov.type = "cons"
)

Arguments

data

A data frame or list containing the model response variable and covariates required by the formula.

formula

A STEM formula which is exactly like the formula for a GAM except that bivariate smooth terms, f(), can be added to the right hand side to specify that the predictor depends on bivariate smooth functions of predictors.

location

Location information used in the bivariate smooth function.

V

Vertices of a triangulation.

Tr

Triangles of a triangulation.

d

Degree of polynomials in bivariate smooth funciton, default is 2.

r

Smoothness parameter in bivariate smooth function, default is 1.

family

This is a family object specifying the distribution and link to use in fitting etc, default is ziP() (the zero-inflated poisson).

offset

The offset used to supply a model fitting.


covid19-dashboard-us/STEM documentation built on May 12, 2020, 1:05 a.m.