SetVbleCluster: Constructs a variable that indicates the locations and times...

Description Usage Arguments Value

View source: R/glm.iscluster.R

Description

This function constructs a variable that indicates the locations and times that pertain to a cluster. Each position of the variable is equal to 1 if it corresponds to a location and time inside the cluster, and 0 otherwise. This is one of the explanatory variables used in the glmAndZIP.iscluster function to model the observed cases.

Usage

1
SetVbleCluster(stfdf, idTime, idSpace)

Arguments

stfdf

spatio-temporal class object containing the data.

idTime

vector with the indexes of the stfdf object corresponding to the time inside the cluster.

idSpace

vector with the indexes of the stfdf object corresponding to the locations inside the cluster.

Value

vector with 1's or 0's that indicates the locations and times that pertain to a cluster.


DClusterm documentation built on Feb. 25, 2020, 5:06 p.m.