Displaying 1 result from an estimated 1 matches for "metamat".
Did you mean:
metamap
2006 Apr 01
0
help with vectorizing a function
...example of the procedure:
(i have noticed also a different behaviour on different machines)
##################################
x <- rnorm(1000, sd=15)
y <- -x + rnorm(1000, sd=15)
plot(x, y, ann=F, pch=16,
xlim=c(-50,50), ylim=c(-50, 50), asp=1, col=2)
abline(lm(y ~ x))
metamat<-c( 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0,
1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0,
0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 0,
1, 0, 1, 1, 0, 0, 1, 1, 1, 1, 1, 0,
0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0,
1, 0, 0, 0)
matemot<-c( 0, 0, 1, 0, 1, 0, 1, 0,...