predict.GClm {tigerstats} | R Documentation |
Prediction Function for GC Linear Regression
Description
Used by generic predict function
Usage
## S3 method for class 'GClm'
predict(object,x,level=NULL,...)
Arguments
object |
An object of class GClm |
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 fastest speed driven, for person with GPA=3.0:
SpeedModel <- lmGC(fastest~GPA,data=m111survey)
predict(SpeedModel,x=3.0)
#include prediction interval:
predict(SpeedModel,x=3.0,level=0.95)
[Package tigerstats version 0.3.2 Index]