Description Usage Arguments Value

This creates the precision matrix from a mesh created by R-INLA with a specified range. This is currently set up to support the standard spde approach of precision matrices and the barrier model version. Similar in purpose to .sp_covar.

1 2 3 4 5 6 7 8 |

`mesh` |
The mesh created by R-INLA representing spatial area |

`barrier.triangles` |
the list of triangles of the mesh in the barrier, only used for barrier model |

`range` |
decorrelation range |

`range_fraction` |
the fraction that sets the range over the "land" parts of the barrier model. Only used with the barrier model |

`sigma_u` |
the overall variance of the spatial process |

`model` |
'spde' for the SPDE approach, 'barrier' for barrier approach |

Q a sparse precision matrix of type dgTMatrix

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.