View source: R/jackknifeMove.1.R
jackknifeMove.1 | R Documentation |
Computes the bias and variance of move.1 predictions using the jackknife estimator.
jackknifeMove.1(object, newdata, type = c("response", "link"))
object |
an object of class "move.1" on which to base the predicted values. |
newdata |
an optional data.frame in which to look for variables with
which to predict. If omitted, then the calibration data are used; the response
values are sorted from smallest to largest and |
type |
the type of prediction ("response" or "link"). See Details. |
If type
is "response," then the predicted values are
back-transformed. Otherwise, the predicted values are computed directly from
the model equation.
A vector of predictions matching newdata
or the model data.
Lorenz, D.L., 2015, smwrStats-an R package for analyzing hydrologic data, version 0.7.0: U.S. Geological Survey Open-File Report 2015-XXXX, XX p.
move.1
, predict.move.1
library(smwrData) data(IonBalance) # Build model for non missing Alkalinity IB.move <- move.1(Anion_sum ~ Cation_sum, data=IonBalance, subset=abs(Pct_Diff) < 10) print(IB.move) # Predict Anion_sum for missing Alkalinity predict(IB.move, IonBalance[1, ])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.