Displaying 1 result from an estimated 1 matches for "plantdist".
2010 Jul 16
1
discrepancy matrix
...each pair ( a pair is a combination
, made of different colours (zB. 2,3 or 2,6)).
(343-678)+(1503-1701) = -533
( if my explanation is too bad, you can look up for a equivalent example on
this page:http://www.stat.lsa.umich.edu/~bbh/optmatch/doc/optmatch.pdf (
on page 5))
I tried this code:
plantdist<-round(outer(rank(' date')[as.logical('colour')],rank('
date')[!as.logical('colour')],
FUN = function(X, Y) {
abs(X - Y)
}) + outer(rank( 'number ')[as.logical('colour')], rank( 'number
')[!as.logical('colour')],
FUN = function...