The returned value is an object of either class dstan
or dinla
, depending on the chosen method
. They are both lists that contain:
distributionsdistribution specified each response variable.
n_pointsample size for geostatistical data.
n_areasample size for lattice data.
n_gridSet to 1 for INLA, set to the number of grids for Stan.
p_pointnumber of coefficients for geostatistical model component (only if there is geostatistical data).
n_point_var, n_area_var, n_pp_varnumber of response variables for each data type.
Y_pointresponse variable for geostatistical data (only if there is geostatistical data).
X_pointcovariates for geostatistical data (only if there is geostatistical data).
p_areanumber of coefficients for lattice model component (only if there is lattice data).
Y_arearesponse variable for lattice data (only if there is lattice data).
X_areacovariates for lattice data (only if there is lattice data).
geo.formula, lattice.formulaformulas used for geostatistical and lattice data.
dstan additionally contains:
n_neighbornumber of nearest neighbors to consider for NNGP modelling.
n_sampletotal number of sampling points.
nearid, nearind_samplevectors containing neighborhood indices
C_nei, C_site_nei, sC_nei, sC_site_neivarious distance matrices
A1aggregation matrix that maps sampling points to areal averages (only if there is lattice data).
Y_ppthe number of cases/events in each grid for point pattern data (only if there is point pattern data).
areathe area of each grid (only if there is point pattern data).
grd_lrgthe grid generated for point pattern data modeling (only if there is point pattern data).
locsall the locations where the latent components are modelled.
dinla additionally contains:
domainspatial domain as a SpatialPolygons-class
locs_pointlocations of geostatistical data.
locs_pplocations of point pattern data.
polylattice data as a SpatialPolygonsDataFrame-class.