plausibility | R Documentation |
Y(s0)
being Y0
This function provides the plausibility of Y(s0)
being Y0
,
given observations s
and Y
,
using spatial conformal prediction algorithms.
plausibility( Y0, s0, s, Y, global = TRUE, eta = Inf, m = NULL, pred_fun = krige_pred, thetaHat = NULL, dfun = c("residual2", "std_residual2") )
Y0 |
a scalar or a vector |
s0 |
prediction location, a numeric vector with |
s |
an n x 2 |
Y |
a vector with n values corresponding to |
global |
logical; if |
eta |
kernel bandwidth for weight schema, a positve scalar with smaller value meaning more localized procedure.
Defauls to |
m |
an postive integer representing the number of nearest locations to use for prediction.
Default to |
pred_fun |
spatial prediction function with inputs being |
thetaHat |
a vector of Matern parameters, representing nugget, partial sill, range, and smoothness as in Mao. et al. (2020).
Defaults to |
dfun |
non-conformity measure with four options.
In which, |
The output is a scalar or a vector with plausibility values for Y0
. The numbers are between 0 and 1.
Huiying Mao, hmao@samsi.info, Brian Reich bjreich@ncsu.edu
to be entered
plausibility_contour
## To predict Y(s0), where s0 = c(0.5,0.5), using sample data ## What's the plausibility if Y(s0) = 0? Y(s0) = 1.5? #?sample_data s0 = c(0.5,0.5) s = sample_data$s Y = sample_data$Y # plausibility for Y(s0) = 0 plausibility(Y0=0,s0=s0,s=s,Y=Y) # plausibility for Y(s0) = 1.5 plausibility(Y0=1.5,s0=s0,s=s,Y=Y) # plausibility for a sequence of Y0's plausibility(Y0=seq(0,1,0.1),s0=s0,s=s,Y=Y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.