krige_pred | R Documentation |
This function provides an example for pred_fun
in scp
,
plausibility
, and plausibility_contour
, which provides a point prediction
for location s0
(and corresponding standard error), given obserations s
and Y
.
krige_pred(s0, s, Y, return_sd = FALSE)
s0 |
prediction location, a numeric vector with |
s |
an n x 2 |
Y |
a vector with n values corresponding to |
return_sd |
logical. if |
If return_sd
is FALSE (default), the output is a value of point prediction for Y(s0)
;
If return_sd
is TRUE, the output is a list
with the following elements:
yhat |
point prediction for |
sd |
standard error for |
#?sample_data s0 = c(0.5,0.5) s = sample_data$s Y = sample_data$Y krige_pred(s0,s,Y) krige_pred(s0,s,Y,return_sd=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.