File: te_var.q

package info (click to toggle)
sm 2.2-6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,540 kB
  • sloc: f90: 259; ansic: 21; makefile: 2
file content (10 lines) | stat: -rw-r--r-- 294 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
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)
})