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.
SetVbleCluster(stfdf, idTime, idSpace)
spatio-temporal class object containing the data.
vector with the indexes of the stfdf object corresponding to the time inside the cluster.
vector with the indexes of the stfdf object corresponding to the locations inside the cluster.
vector with 1's or 0's that indicates the locations and times that pertain to a cluster.