R/predict.gppr.R

Defines functions predict.gppr

Documented in predict.gppr

predict.gppr<-function(object,newdata,type="link"){
	pred<-predict(object$ppr,newdata)
	if(type=="response"){
		pred<-object$family$linkinv(pred)
	}
	pred
}

Try the gsg package in your browser

Any scripts or data that you put into this service are public.

gsg documentation built on May 2, 2019, 9:37 a.m.