Realdata_Finalmodel {GDILM.SIR} | R Documentation |
This function is used to estimate model parameters
Description
This function is used to estimate model parameters
Usage
Realdata_Finalmodel(
ITER,
zz,
lambda0,
sigma0,
Di,
D,
n,
time,
tau,
lambda,
alpha0,
q1,
q2,
cov1,
cov2,
phi,
delta0,
Nlabel,
npar,
I
)
Arguments
ITER |
Number of iterations |
zz |
Number of Regions |
lambda0 |
Spatial dependence |
sigma0 |
precision |
Di |
Euclidean distance between susceptible individual and infectious individual |
D |
Neighborhood structure |
n |
total number of individuals |
time |
time |
tau |
tau |
lambda |
lambda ### |
alpha0 |
intercept |
q1 |
Number of variables corresponding to individual level data |
q2 |
Number of variables corresponding to area level data |
cov1 |
Individual level covariates |
cov2 |
Area level covariates |
phi |
Spatial random effects |
delta0 |
Spatial parameter |
Nlabel |
Label for each sample from the area |
npar |
number of parameters |
I |
Identity matrix |
Value
Numerical values for estimates
Examples
Realdata_Finalmodel(2,4,0.2,0.5,
matrix(runif(400,min = 4,max = 20),nrow=20, byrow = TRUE),
matrix(c(0,-1,0,-1,-1,0,-1,-1,0,-1,0,-1,-1,-1,-1,0),nrow=4,byrow=TRUE),20,10,
sample(c(0,1),replace = TRUE, size = 20),rep(3,20),0.4,6,5,
matrix(runif(120, 0, 1),nrow=20,byrow=TRUE),
matrix(runif(20, 0, 1),nrow=4,byrow=TRUE),runif(4,min = 0, max = 1),2,
rep(1:4,each=5),15,diag(4))
[Package GDILM.SIR version 1.2.1 Index]