Usage
sparse.sglmm(formula, family = gaussian, data, offset, A,
q = 50, tol = 0.01, minit = 10000, maxit = 1e+06,
tune = list(), hyper = list(), model = TRUE, x = FALSE,
y = FALSE)
Arguments
formula
an object of class formula
:
a symbolic description of the model to be fitted. family
a description of the error distribution and
link function to be used in the model. This can be a
character string naming a family function, a family
function, or the result of a call to a family function.
(See
data
an optional data frame, list, or environment
(or object coercible by as.data.frame
to a
data frame) containing the variables in the model. If not
found in data
, the variables are ta offset
this can be used to specify an a
priori known component to be included in the linear
predictor during fitting. This should be NULL
or a
numeric vector of length equal to the number of cases.
One or more
A
the adjacency matrix for the underlying graph,
which is assumed to be undirected and free of loops and
parallel edges.
q
the number of Moran eigenvectors to use. The
default is 50. See `Details' for more information.
tol
a tolerance. If all Monte Carlo standard
errors are smaller than tol
, no more samples are
drawn from the posterior. The default is 0.01.
minit
the minimum sample size. This should be
large enough to permit accurate estimation of Monte Carlo
standard errors. The default is 10,000.
maxit
the maximum sample size. Sampling from the
posterior terminates when all Monte Carlo standard errors
are smaller than tol
or when maxit
samples
have been drawn, whichever happens first. The default is
1,000,000.
tune
(where relevant) a list containing
sigma.s
and sigma.h
. These are the standard
deviations for the $\gamma$ and $\delta$
proposals, respectively.
hyper
(where relevant) a list containing
a.h
and b.h
, the parameters of the gamma
prior for $\tau_h$.
model
a logical value indicating whether the model
frame should be included as a component of the returned
value.
x
a logical value indicating whether the model
matrix used in the fitting process should be returned as
a component of the returned value.
y
a logical value indicating whether the response
vector used in the fitting process should be returned as
a component of the returned value.