Learn R Programming

mgwrsar (version 0.1-1)

sample_spat: A sampling method for bootstrap test with spatial data using distance bisquare kernel.

Description

A sampling method for bootstrap test with spatial data using distance bisquare kernel.

Usage

sample_spat(D,h,focal='median')

Arguments

D

A square matrix of distance.

h

A distance bandwidth.

focal

If focal is NULL, the ith residuals can not be selected for the ith observation, if focal=='median' it could be selected with a probability equals to the median probability of neighbors.

Value

a vector of bootstrapped index