take a particular value of y and predict F(y|x)

# S3 method for DR
Fycondx(object, yvals, xdf)

Arguments

object

a distribution regression object

yvals

the values to compute the ecdf for

xdf

a dataframe (can contain multiple rows) with x values

Value

an ecdf for each value of the x's

Examples

data(igm) yvals <- seq(quantile(igm$lcfincome,.05,type=1), quantile(igm$lcfincome,.95, type=1), length.out=100) dres <- distreg(lcfincome ~ lfincome + HEDUC, igm, yvals) xdf <- data.frame(lfincome=10, HEDUC=c("LessHS","HS")) d <- Fycondx(dres, yvals, xdf) d
#> [[1]] #> Empirical CDF #> Call: NULL #> x[1:100] = 9.6856, 9.7073, 9.7291, ..., 11.814, 11.836 #> #> [[2]] #> Empirical CDF #> Call: NULL #> x[1:100] = 9.6856, 9.7073, 9.7291, ..., 11.814, 11.836 #>
y0 <- yvals[50] d[[1]](y0)
#> [1] 0.7270084