sm.binomial(x, y, N = rep(1, length(y)), h, ...)
N
.
sm.options
function, through a mechanism which limits their effect only to this
call of the function; those relevant for this function are the following:
add
,
col
,
display
,
eval.points
,
nbins
,
ngrid
,
pch
,
xlab
,
ylab
;
see the documentation of sm.options
for their description.
display
parameter.sm.binomial.bootstrap
, sm.poisson
,
sm.options
, glm
, binning
with(birth, {
sm.binomial(Lwt[Smoke=="S"], Low[Smoke=="S"], h=20,
xlab='mother weight[Smoke=="S"]')
x<- seq(0,1,length=30)
y<- rbinom(30,10,prob=2*sin(x)/(1+x))
sm.binomial(x,y,N=rep(10,30), h=0.25)
})
Run the code above in your browser using DataLab