Learn R Programming

PCAmixdata (version 2.1)

Lg.pond: Coefficient Lg with ponderation

Description

Compute a data fame with all the Lg coefficients between each matrix of a list ponderated

Usage

Lg.pond(liste.mat, ponde)

Arguments

liste.mat
a list of G matrix
ponde
a vector of size G with the ponderation associated to each matrix

Value

  • Lg.ponda data frame with G rows and G colums with all the Lg coefficients ponderated

Examples

Run this code
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)
ponderation<-c(1,2,1)
liste.mat<-list(G1,G2,G3)
Lg.pond(liste.mat,ponderation)

Run the code above in your browser using DataLab