predict.polyGC | R Documentation |
Used by generic predict function
## S3 method for class 'polyGC'
predict(object,x,level=NULL,...)
object |
An object of class polyGC |
x |
value of the predictor variable |
level |
desired level of prediction interval |
... |
ignored |
numeric prediction
Homer White hwhite0@georgetowncollege.edu
#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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.