Sim_Estpar {GDILM.SIR} | R Documentation |
Calculating the estimated values for the parameters using log-likelihood function
Description
Calculating the estimated values for the parameters using log-likelihood function
Usage
Sim_Estpar(
Nlabel,
phi,
Di,
alpha1,
delta,
lambda1,
sigma1,
beta1,
beta2,
zz,
time,
n,
tau,
lambda,
I,
D,
cov1,
cov2
)
Arguments
Nlabel |
Label for each sample from the area |
phi |
Spatial random effects |
Di |
Euclidean distance between susceptible individual and infectious individual |
alpha1 |
intercept |
delta |
Spatial parameter |
lambda1 |
Spatial dependence |
sigma1 |
precision of spatial random effects |
beta1 |
the parameter corresponding to the covariate associated with susceptible individual |
beta2 |
the parameter corresponding to the covariate associated with area |
zz |
Number of areas |
time |
Time |
n |
Total number of individuals |
tau |
the set of infectious individuals at time t in the zth area |
lambda |
a vector containing the length of infectious period |
I |
identity matrix |
D |
Neighborhood structure |
cov1 |
Individual level covariates |
cov2 |
Area level covariates |
Value
a list of the solutions for the estimations of the parameters
Examples
Sim_Estpar(rep(1:4,each=5),runif(4,min = 0, max = 1),
matrix(runif(400,min=4,max=20),nrow=20,byrow = TRUE),0.4,3,0.2,0.5,1,1,4,10,
20,sample(c(0,1),replace = TRUE, size = 20),rep(3,20),diag(4),
matrix(c(0,-1,0,-1,-1,0,-1,-1,0,-1,0,-1,-1,-1,-1,0),nrow=4,byrow=TRUE),
runif(20, 0, 1),runif(4, 0, 1))
[Package GDILM.SIR version 1.2.1 Index]