generate_projection | R Documentation |
Generate a projection matrix to locations in data_df
, possible
zeroing out some observations. Also group by year for a spatiotemporal
effect.
generate_projection( mesh, data_df, vessel_idx = NULL, group = NULL, zero = FALSE )
mesh |
INLA mesh to project |
data_df |
Data frame with |
vessel_idx |
Vessel index to project to; others receive zero weight and are dropped |
group |
Year of observation for spatiotemporal effect |
zero |
Is this an empty projection matrix? (May be useful if e.g. the random effects parameters associated with it are map'd to zeros.) |
A sparse projection matrix
John Best
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.