predict.polyGC: Prediction Function for GC Polynomial Regression

Description Usage Arguments Value Author(s) Examples

View source: R/polyfitGC.R

Description

Used by generic predict function

Usage

1
2
## 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

1
2
3
4
5
#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)

tigerstats documentation built on May 29, 2017, 12:13 p.m.

Search within the tigerstats package
Search all R packages, documentation and source code