predict.polyGC: Prediction Function for GC Polynomial Regression

View source: R/polyfitGC.R

predict.polyGCR Documentation

Prediction Function for GC Polynomial Regression

Description

Used by generic predict function

Usage

## S3 method for class 'polyGC'
predict(object,x,level=NULL,...)

Arguments

object

An object of class polyGC

x

value of the predictor variable

level

desired level of prediction interval

...

ignored

Value

numeric prediction

Author(s)

Homer White hwhite0@georgetowncollege.edu

Examples

#predict mpg for a car weighing 3 tons:
mpgModel <- polyfitGC(mpg~wt,data=mtcars,degree=2)
predict(mpgModel,x=3.0)
#include prediction interval:
predict(mpgModel,x=3.0,level=0.95)

homerhanumat/tigerstats documentation built on June 13, 2025, 8:34 a.m.