08.04.2015 Views

The ade4 Package - NexTag Supports Open Source Initiatives

The ade4 Package - NexTag Supports Open Source Initiatives

The ade4 Package - NexTag Supports Open Source Initiatives

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

dist.quant 71<br />

Arguments<br />

df<br />

method<br />

diag<br />

upper<br />

tol<br />

a data frame containing only quantitative variables<br />

an integer between 1 and 3. If NULL the choice is made with a console message.<br />

See details<br />

a logical value indicating whether the diagonal of the distance matrix should be<br />

printed by ‘print.dist’<br />

a logical value indicating whether the upper triangle of the distance matrix<br />

should be printed by ‘print.dist’<br />

used in case 3 of method as a tolerance threshold for null eigenvalues<br />

Details<br />

All the distances are of type d = ‖x − y‖ A = √ (x − y) t A(x − y)<br />

1 = Canonical A = Identity<br />

2 = Joreskog A =<br />

1<br />

diag(cov)<br />

3 = Mahalanobis A = inv(cov)<br />

Value<br />

an object of class dist<br />

Author(s)<br />

Daniel Chessel<br />

Stéphane Dray 〈dray@biomserv.univ-lyon1.fr〉<br />

Examples<br />

data(ecomor)<br />

par(mfrow = c(2,2))<br />

scatter(dudi.pco(dist.quant(ecomor$morpho,3), scan = FALSE))<br />

scatter(dudi.pco(dist.quant(ecomor$morpho,2), scan = FALSE))<br />

scatter(dudi.pco(dist(scalewt(ecomor$morpho)), scan = FALSE))<br />

scatter(dudi.pco(dist.quant(ecomor$morpho,1), scan = FALSE))<br />

par(mfrow = c(1,1))

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!