jackknifeMove.1: Jackknife move.1

View source: R/jackknifeMove.1.R

jackknifeMove.1R Documentation

Jackknife move.1

Description

Computes the bias and variance of move.1 predictions using the jackknife estimator.

Usage

jackknifeMove.1(object, newdata, type = c("response", "link"))

Arguments

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 is set to "link" if it is not set to "response" in the call.

type

the type of prediction ("response" or "link"). See Details.

Details

If type is "response," then the predicted values are back-transformed. Otherwise, the predicted values are computed directly from the model equation.

Value

A vector of predictions matching newdata or the model data.

References

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.

See Also

move.1, predict.move.1

Examples

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, ])

USGS-R/smwrStats documentation built on Oct. 11, 2022, 6:15 a.m.