| ktab.within {ade4} | R Documentation |
performs the process to go from a Within Analysis to a K-tables.
ktab.within(dudiwit, rownames = NULL, colnames = NULL, tabnames = NULL)
dudiwit |
an objet of class within |
rownames |
the row names of the K-tables (otherwise the row names of dudiwit$tab) |
colnames |
the column names of the K-tables (otherwise the column names of dudiwit$tab) |
tabnames |
the names of the arrays of the K-tables (otherwise the levels of the factor which defines the within-classes) |
a list of class ktab. See ktab
Daniel Chessel
Anne B Dufour dufour@biomserv.univ-lyon1.fr
data(bacteria) w1 <- data.frame(t(bacteria$espcodon)) dudi1 <- dudi.coa(w1, scann = FALSE, nf = 4) wit1 <- within(dudi1, bacteria$code, scannf = FALSE) kta1 <- ktab.within(wit1) plot(statis(kta1, scann = FALSE)) kta2 <- kta1[kta1$blo>3] kplot(mfa(kta2, scann = FALSE))
> library(ade4) > ### Name: ktab.within > ### Title: Process to go from a Within Analysis to a K-tables > ### Aliases: ktab.within > ### Keywords: multivariate > > ### ** Examples > > data(bacteria) > w1 <- data.frame(t(bacteria$espcodon)) > dudi1 <- dudi.coa(w1, scann = FALSE, nf = 4) > wit1 <- within(dudi1, bacteria$code, scannf = FALSE) > kta1 <- ktab.within(wit1) > plot(statis(kta1, scann = FALSE))

> > kta2 <- kta1[kta1$blo>3] > kplot(mfa(kta2, scann = FALSE))

> > > >