Description Usage Arguments Details Value Examples
Estimation of parameters of autologistic regression model for data on a grid
1 2 3 4 5 |
data |
dataset with the coordinates in the two first columns. |
covariate1 |
spatio-temporal covariate. The covariate dataframe must have |
covariate2 |
spatio-temporal covariate. The covariate dataframe must have |
covariate3 |
spatio-temporal covariate. The covariate dataframe must have |
norm |
|
vxpresent |
positive real. Parameter of the ellipse for the tested neighborhood on x-axes in norm |
vypresent |
positive real. Parameter of the ellipse for the tested neighborhood on y-axes in norm |
vxpast |
positive real. Parameter of the ellipse for the tested neighborhood on x-axes in norm |
vypast |
positive real. Parameter of the ellipse for the tested neighborhood on y-axes in norm |
dx |
positive real : distance between sites on x-axis. |
dy |
positive real : distance between sites on y-axis. |
swpresent |
if |
swpast |
if |
graph |
if |
pastcov |
boolen. If |
buildpres |
boolean which allow the use of a custom neighborhood matrix. |
buildpast |
boolean which allow the use of a custom neighborhood matrix. |
See "User guides, package vignettes and other documentation"
the "estima"
vignette.
list : estimate parameters using the pseudo-likelihood.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | data <- plantillness
v <- which(data$NRang <= 10)
data <- data[v,]
v <- which(data$NCep <= 10)
data<-data[v,]
result <- estima(data = data)
#Example in "lin" norm, with a fixed neighborhood :
result <- estima(data = plantillness, norm = "lin",swpresent = FALSE,vxpresent = 3, vypresent = 4)
#Example with a spatial covariate (adapted to the dimension of the dataset) :
cov <- covplant[,1]
for (i in (1:(dim(plantillness)[2] - 4))){
cov <- cbind(cov,covplant[,1])
}
result <- estima(data = plantillness,covariate1 = cov)
#Example with the past neighborhood as covariate:
result <- estima(data = plantillness,pastcov = TRUE)
#Exemple with a custom neighborhood matrix
custompres <- build(data = plantillness)
custompast <- build(data = plantillness, vx = 5,vy = 6)
result <- estima(data = plantillness,pastcov = TRUE,buildpres = custompres,buildpast = custompast)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.