File: trwlboot.q

package info (click to toggle)
sm 2.0.14-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 992 kB
  • ctags: 26
  • sloc: fortran: 133; sh: 28; makefile: 13
file content (12 lines) | stat: -rw-r--r-- 431 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
provide.data(trawl)
ind <- (Year == 1 & Zone == 1 & !is.na(Depth))
par(mfrow=c(1,2))
sm.regression(Depth[ind], Score1[ind], h = 5,
        xlab="Depth", ylab="Score1")
plot(Depth[ind], Score1[ind], type = "n",
        xlab="Depth", ylab="Score1")
for (i in 1:100)
  	sm.regression(Depth[ind], sample(Score1[ind]),
  		h = 5, col = 6, lty = 2, add = TRUE)
sm.regression(Depth[ind], Score1[ind], h = 5, add = TRUE)
par(mfrow=c(1,1))