predict.WEE.logistic: WEE logistic Regression Prediction

Description Usage Arguments Details Value See Also Examples

View source: R/WEE_functions.r

Description

Prediction on new dataset based on model fitted by WEE logistic regression

Usage

1
2
## S3 method for class 'WEE.logistic'
predict(object,newx, ...)

Arguments

object

Object produced by WEE.logistic.

newx

A data matrix in which to look for variables with which to predict, newx cannot be omitted

...

Further arguments passed to or from other methods.

Details

Produces predicted values, obtained by evaluating the WEE logistic regression function on newx.

Value

If in the WEE.logistic fitting procedure boot = 0, linear predictor and predicted response of each newx are given. If in the WEE.logistic fitting procedure boot > 0, standard errors of linear predictor and predicted response are given.

See Also

WEE.logistic

Examples

1
2
3
4
5
6
7
## continued from WEE.logistic
## predict outcome y based on newx
newx = dat[sample(500000,3, replace=FALSE),][,c("x","z")]
predict(WEE.logistic(y ~ x + z, D, 
        data = dat_sample, pD),newx) 				      
predict(WEE.logistic(y ~ x + z, D, 
        data = dat_sample, pD, boot = 500),newx)

WEE documentation built on May 2, 2019, 6:43 a.m.