| validate_gp | R Documentation |
Fills in the neighbor structure (spatial_gp()) or structures
(spatial_multiscale()) that tulpa_gibbs() and tulpa_laplace() need
from a spatial = spec, since those design-matrix doors take no data
argument to validate one themselves. tulpa() calls this internally, so it
only needs to be called directly when fitting through a design-matrix door.
validate_gp(gp, data)
gp |
A |
data |
Data frame containing the coordinate columns named in |
Updated spatial object with computed neighbor structure.
validate_temporal_multiscale(), spatial_gp(),
spatial_multiscale()
set.seed(1)
d <- data.frame(lon = runif(30), lat = runif(30))
gp <- validate_gp(spatial_gp(~ lon + lat, nn = 5), d)
gp$n_spatial
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.