bootstrap.wa | R Documentation |
Function to calculate bootstrap statistics for transfer function
models such as bootstrap estimates, model RMSEP, sample specific
errors for predictions and summary statistics such as bias and
R^2
between oberved and estimated environment.
## S3 method for class 'wa'
bootstrap(object, n.boot = 1000, verbose = TRUE, ...)
object |
an R object of class |
n.boot |
numeric; the number of bootstrap samples to draw. |
verbose |
logical; should bootstrap progress be printed to the console? |
... |
arguments passed to other methods. |
See bootstrap.mat
for further details. This method is
not as feature packed as bootstrap.mat
but can be used
to evaluate the model performance of WA transfer function models.
An object with the same components as predict.wa
.
Gavin L. Simpson
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
, plot.wa
.
## Imbrie and Kipp
data(ImbrieKipp)
data(SumSST)
ik.wa <- wa(SumSST ~ ., data = ImbrieKipp, tol.dw = TRUE,
min.tol = 2, small.tol = "min")
ik.wa
## compare actual tolerances to working values
with(ik.wa, rbind(tolerances, model.tol))
## bootstrap the WA model
ik.boot <- bootstrap(ik.wa, n.boot = 100)
## performance statistics
performance(ik.boot)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.