Description Usage Arguments Details Value Examples

Function for computing a matrix of gaussian or fixed weights from distance matrix

1 |

`distmat` |
a symmetric matrix of inter-site distances (in km). |

`h` |
parameter of the Gaussian distance decay function. |

`kernel` |
indicates the type of weighting function, either 'fixed' or 'gaussian'. Default is 'gaussian'. |

This function generates a weight matrix (required for the `SPpermTest`

) function. When `kernel=="fixed"`

, the weight *w_{ij}* between site *i* and *j* is equal to 1 when their interdistance *d_{ij}* is below `h`

, and equal to 0 when *d_{ij}>h*.When `kernel=="gaussian"`

, the weight is calculated with formula exp(-d_ij^2/h^2).

An object of class spatialweights

1 2 3 4 5 6 |

rcarbon documentation built on Oct. 1, 2018, 5:03 p.m.

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.