dot-prime: Transform the input parameters

.primeR Documentation

Transform the input parameters

Description

An internal function to transform the input parameters

Usage

.prime(s0, s, Y, global, eta, m, dfun)

Arguments

s0

prediction location, a numeric vector with length = 2, or a matrix with 1 row and 2 cols, or a data.frame with 1 row and 2 cordinates.

s

an n x 2 matrix or data.frame with two coordinates of n locations.

Y

a vector with n values corresponding to Y(s).

global

logical; if TRUE , scp function returns the result of global spatial conformal prediction (GSCP); if FALSE, scp function returns the result of local spatial conformal prediction (LSCP) and users need to specify eta. Defaults to TRUE.

eta

kernel bandwidth for weight schema, a positve scalar with smaller value meaning more localized procedure. Defauls to Inf, which puts equal weight on surrounding m points.

m

an postive integer representing the number of nearest locations to use for prediction. Default depands on eta.

dfun

non-conformity measure with four options. In which, "residual2" (default) represents squared residual, "std_residual2" represents standardized squared residual, "abs_residual" represents absolute residual, and "std_abs_residual" represents standardized absolute residual.


mhuiying/scp documentation built on May 4, 2022, 11:35 p.m.