predict.WEE.quantile: WEE quantile 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 quantile regression

Usage

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

Arguments

object

Object produced by WEE.quantile.

newx

A new data matrix in which to look for data 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 quantile regression function on newx.

Value

If in the WEE.quantile fitting procedure boot = 0, only point predictions are given. If in the WEE.quantile fitting procedure boot > 0, standard errors of prediction are also given.

See Also

WEE.quantile

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## continued from WEE.quantile
## prediction based on newx
newx = dat[sample(500000,3, replace=F),][,c("x")]
p1 = predict(WEE.quantile(y ~ x, D, tau = 0.5, 
     data = dat_quantile, pd_pop = pd),newx)	
p1

newx = dat[sample(500000,3, replace=F),][,c("x","z")]
p2 = predict(WEE.quantile(y ~ x + z, D, tau = c(0.25,0.5), 
     data = dat_quantile, pd_pop = pd, boot = 500),newx)
p2

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