SetVbleCluster {DClusterm} R Documentation

Constructs a variable that indicates the locations and times that pertain to a cluster.

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

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.

[Package DClusterm version 1.0-1 Index]