inst/scripts/te_var.q

with(tephra, {
logit <- log(Al2O3/(100-Al2O3))
nn    <- nnbr(logit, 7)
hw    <- nn/exp(mean(log(nn)))
sm.density(logit, h.weights = hw, lty = 2, yht = 12.2)
hw    <- sqrt(nn)
hw    <- hw/exp(mean(log(hw)))
sm.density(logit, h.weights = hw, lty = 3, add = TRUE)
sm.density(logit, add = TRUE)
})

Try the sm package in your browser

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

sm documentation built on May 29, 2024, 2:28 a.m.