makepredictcall: Utility Function for Safe Prediction

makepredictcall.quadraticR Documentation

Utility Function for Safe Prediction

Description

A utility to help model.frame.default create the correct matrices when predicting from models with quadratic, hyperbolic, or boxCox terms. Used only internally.

Usage

## S3 method for class 'quadratic'
makepredictcall(var, call)

## S3 method for class 'hyperbolic'
makepredictcall(var, call)

## S3 method for class 'boxCox'
makepredictcall(var, call)

## S3 method for class 'scaleRng'
makepredictcall(var, call)

Arguments

var

a variable.

call

the term in the formula, as a call.

Value

A replacement for call for the prediction variable.


USGS-R/smwrBase documentation built on Oct. 18, 2022, 9:55 a.m.