Learn R Programming

tigerstats (version 0.3.2)

predict.GClm: Prediction Function for GC Linear Regression

Description

Used by generic predict function

Usage

# S3 method for 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

Examples

Run this code
# NOT RUN {
#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)
# }

Run the code above in your browser using DataLab