inst/scripts/speedvar.q

with(aircraft, {
hw <- nnbr(Speed, 30)
hw <- hw/exp(mean(log(hw)))
par(mfrow=c(1,2))
sm.density(Speed, yht=0.0022, positive=TRUE)
sm.density(Speed, yht=0.0022, xlim=c(-700,4000), h.weights=hw, nbins=0)
par(mfrow=c(1,1))
})

Try the sm package in your browser

Any scripts or data that you put into this service are public.

sm documentation built on July 4, 2022, 5:06 p.m.