Bsiland is used to find the buffer size to estimate lanbdscape influence.
Bsiland(formula, land, data, family = "gaussian", init = 200, border = F)
a symbolic description (see lm() or glm()) of the response variable concerning local variables. Random effects are also allowed according to the syntax in package lme4 (see lmer() function in package lme4).
an object of class sf that gives the landscape variables for the model.
a dataframe containing the response variable and the local variables.
the distribution of response variable. family can be "gaussian", "poisson" or "binomial" and the associated link function are identity, log and logit respectively.
a vector indicating the starting values to estimate the buffer sizes. By default, buffer sizes are initialized to 200 for each variable.
a logical indicating whereas the buffer are computed from the observation locations (border=F) or from the border of the polygon where observations are located (border=T)
Fsiland returns an object of type list.
vector of estimated coefficients
vector of estimated buffer distances
an object of class formula that indicates the local model used
a dataframe with percentage for each landscape variable inside buffers
log-likelihood for the estimated parameters
log-likelihood for the local model
fitted values
an object of class optim or optimize giving informations about the optimization procedure see optim() or optimize() for further details.
an object of type lm/glm/lmer that corresponds to the estimated model conditionnaly to the best buffer sizes for the landscape variables.
akaike information criterion
akaike information criterion for local model (no landscape variable)
number of parameters
p.value of the test of global effect of spatial variables. Obtained from the likelihood ratio test between the complete model and the local model.
family distribution for the model
standard error for gaussian family, NA in other case
type of local model: GLM for generalised model, LMM for linear mixed model or GLMM for generalised linear mixed model
standard deviation of random effects for LMM or GLMM
estimated residuals
a dataframe with the local variables and the percentages for the different landscape variables obtained with the best buffer sizes.
a logical indicating the value used for estimation
# NOT RUN {
data(dataSiland)
data(landSiland)
resB=Bsiland(obs~x1+L1+L2,land=landSiland,data=dataSiland,init = c(50))
resB
summary(resB)
Bsiland.lik(resB,land=landSiland,data=dataSiland,varnames=c("L1","L2"),seqd=seq(50,1000,length=20))
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab