Description Usage Arguments Details Value Author(s) References See Also Examples
Model predictions and cross-validation predictions for weighted averaging transfer function models.
1 2 3 4 |
object |
an object of class |
newdata |
An optional data frame in which to look for variables with which to predict. If omitted, the fitted values are used. |
CV |
Should cross-validation be performed? Leave-one-out
( |
verbose |
Should CV progress be printed to the console? |
n.boot |
The number of bootstrap samples or k-fold steps. |
nfold |
Number of subsets in k-fold CV. |
... |
further arguments passed to or from other methods. |
Not all CV methods produce the same output. CV = "bootstrap"
and
CV = "nfold"
produce sample specific errors.
An object of class "predict.wa"
, a list with the following
components:
pred |
A list with components |
performance |
A list with model performance statistics. |
model.pred |
A list with components |
call |
the matched function call. |
CV.method |
The CV method used. |
Gavin L. Simpson and Jari Oksanen (k-fold CV)
Birks, H.J.B., Line, J.M., Juggins, S., Stevenson, A.C. and ter Braak, C.J.F. (1990). Diatoms and pH reconstruction. Philosophical Transactions of the Royal Society of London; Series B, 327; 263–278.
wa
, predict.mat
,
performance
, reconPlot
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ## Imbrie and Kipp
data(ImbrieKipp)
ImbrieKipp <- ImbrieKipp / 100
data(SumSST)
ik.wa <- wa(SumSST ~ ., data = ImbrieKipp, tol.dw = TRUE,
min.tol = 2, small.tol = "min")
ik.wa
## load V12.122 core data
data(V12.122)
V12.122 <- V12.122 / 100
## predict summer sea-surface temperature for V12.122 core
set.seed(2)
v12.pred <- predict(ik.wa, V12.122, CV = "bootstrap", n.boot = 100)
## draw the fitted reconstruction
reconPlot(v12.pred, use.labels = TRUE, display = "bars")
## extract the model performance stats
performance(v12.pred)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.