D2toG | R Documentation |
Converts D2
class object into Gram
class object.
D2toG(D2,weights)
D2 |
|
weights |
an optional numeric vector of weights. By default all individuals have the same weight. |
An object of class Gram
containing the Doubly centered
inner product matrix of D2
.
Boj, Eva <evaboj@ub.edu>, Caballe, Adria <adria.caballe@upc.edu>, Delicado, Pedro <pedro.delicado@upc.edu> and Fortiana, Josep <fortiana@ub.edu>
GtoD2
disttoD2
D2toDist
X <- matrix(rnorm(100*3),nrow=100)
D2 <- as.matrix(dist(X)^2)
class(D2) <- "D2"
G <- D2toG(D2,weights=NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.