# NOT RUN {
gridpts <- seq(1, 10, length=101)
x <- seq(1, 10, length=51)
p <- exp(-1 + .2*x)/(1 + exp(-1 + .2*x))
y <- rbinom(51, 1, p)
NWmono(x, y, h=0.6, xgrid=gridpts)
lines(x,p) # true mean response
# }
Run the code above in your browser using DataLab