Description Usage Arguments Details Value See Also Examples
View source: R/WEE_functions.r
Prediction on new dataset based on model fitted by WEE quantile regression
1 2 |
object |
Object produced by |
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. |
Produces predicted values, obtained by evaluating the WEE quantile regression function on newx.
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.
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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.