Simulation_Finalmodel {GDILM.SIR}R Documentation

This function can use to estimate the model parameters using the initial values.

Description

This function can use to estimate the model parameters using the initial values.

Usage

Simulation_Finalmodel(
  ITER,
  zz,
  lambda0,
  sigma0,
  Di,
  g,
  nSample,
  d,
  n,
  time,
  tau,
  lambda,
  alpha0,
  beta10,
  beta20,
  cov1,
  cov2,
  phi,
  delta0,
  Nlabel,
  D,
  I
)

Arguments

ITER

Number of iterations

zz

Number of Regions

lambda0

initial value for Spatial dependence

sigma0

initial value for the precision of spatial random effects

Di

Euclidean distance between susceptible individual and infectious individual

g

Number of rows in the lattice

nSample

Number of individuals in each cell

d

infectious time units

n

total number of individuals

time

time

tau

the set of infectious individuals at time t in the zth area

lambda

a vector containing the length of infectious period

alpha0

initial value for the intercept

beta10

initial value for the parameter corresponding to the covariate associated with susceptible individual

beta20

initial value for the parameter corresponding to the area-level covariates corresponding to area

cov1

a vector of covariates associated with susceptible individual

cov2

a vector of area-level covariates corresponding to area

phi

Spatial random effects

delta0

Spatial parameter

Nlabel

Label for each sample from the area

D

matrix reflecting neighborhood structure

I

Identity matrix

Value

the estimated values for the model parameters

Examples

Simulation_Finalmodel(2,4,0.2,0.5,
matrix(runif(1600,min=4,max=20),nrow=40,byrow=TRUE),2,10,3,40,10,
sample(c(0,1),replace=TRUE,size=40),rep(3,40),0.4,1,1,runif(40,0,1),
runif(4,0,1),runif(4,min=0,max=1),2,rep(1:4,each=10),
matrix(c(0,-1,0,-1,-1,0,-1,-1,0,-1,0,-1,-1,-1,-1,0),nrow=4,byrow=TRUE),
diag(4))



[Package GDILM.SIR version 1.2.1 Index]