Learn R Programming

PCAmixdata (version 3.0)

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.pond

a data frame with G rows and G colums with all the Lg coefficients ponderated

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)
Lg(liste.mat)
# }

Run the code above in your browser using DataLab