Computational Inference from Point Data | R Documentation |
Operations for bootstrapping and kernel bootstrapping based on point data. bstrap.points
sample n
points with replacement from a sample - and jitter.points
adds a Gaussian displacement to each point in a data set. Applying a jitter to a bootstrap effectively creates a kernel bootstrap operation.
jitter.points(pts,scl)
bstrap.points(pts)
pts |
A |
scl |
A scale parameter - basically the standard deviation of the random Gaussian displacement |
A SpatialPointsDataFrame
- with either a sample without replacement or a replica of the input data with displacements.
Chris Brunsdon, Binbin Lu
data(newhaven)
plot(blocks)
for (i in 1:20) plot(jitter.points(breach,150),add=TRUE,pch=1,col='red')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.