spcv: spcv

Description Usage Arguments Value

View source: R/spcv.r

Description

spcv

Usage

1
spcv(df.sp, my_idp = 2, var_name = "conc", ...)

Arguments

df.sp

a SpatialPointsDataFrame object See the sp package for how to create one.

my_idp

a numeric object, specifying the inverse distance weighting bandwidth parameter

var_name

a string object, specifying the variable name for the data frame column containing numeric values to be interpolated. For example, concentrations of a chemical found in spatial samples.

Value

list containing four objects: cv.input (SpatialPointsDataFrame), cv.pred (vector of predictions at the hold out locations), cv.error (vector of errors based on difference of hold out test points and interpolated prediction), cv.rmse (numeric root mean squared error, which is vased on cv.error vector)


kmayerb/spcv documentation built on May 26, 2019, 2:34 a.m.