Learn R Programming

PCAmixdata (version 3.0)

RV.pond: Coefficient RV with ponderation

Description

Computes weighted RV coefficients between matrices.

Usage

RV.pond(liste.mat, ponde)

Arguments

liste.mat

a list of k matrices.

ponde

vector of size k with the ponderation of each matrix.

Value

Returns a matrix of dimension (k, k) with all the weighted RV coefficients.

References

Escofier B et Pages J (1998), Analyses factorielles simples et multiples, Dunod, 3e ed.

Pages J, Analyse factorielle multiple appliquee aux variables qualitatives et aux donnees mixtes. Revue de statistique appliquee, tome 50, num 4 (2002), p. 5-37

See Also

RV, Lg, Lg.pond,

Examples

Run this code
# NOT RUN {
V0<-c("a","b","a","a","b")
V01<-c("c","d","e","c","e")
V1<-c(5,4,2,3,6)
V2<-c(8,15,4,6,5)
V3<-c(4,12,5,8,7)
V4<-c("vert","vert","jaune","rouge","jaune")
V5<-c("grand","moyen","moyen","petit","grand")
G1<-data.frame(V0,V01,V1)
G2<-data.frame(V2,V3)
G3<-data.frame(V4,V5)
liste.mat<-list(G1,G2,G3)
ponderation<-c(1,2,1)
RV.pond(liste.mat,ponderation)
# }

Run the code above in your browser using DataLab