Within-class coinertia analysis

Share:

Description

Performs a within-class analysis after a coinertia analysis

Usage

1
2
3
withincoinertia(obj, fac, scannf = TRUE, nf = 2)
## S3 method for class 'coinertia'
wca(x, fac, scannf = TRUE, nf = 2, ...) 

Arguments

obj

a coinertia analysis (object of class coinertia) obtained by the function coinertia

x

a coinertia analysis (object of class coinertia) obtained by the function coinertia

fac

a factor partitioning the rows in classes

scannf

a logical value indicating whether the eigenvalues barplot should be displayed

nf

if scannf FALSE, an integer indicating the number of kept axes

...

further arguments passed to or from other methods

Details

This analysis is equivalent to do a within-class analysis on each initial dudi, and a coinertia analysis on the two within analyses. This function returns additional outputs for the interpretation.

Value

An object of the class witcoi. Outputs are described by the print function

Note

To avoid conflict names with the base:::within function, the function within is now deprecated and will be removed. To be consistent, the withincoinertia function is also deprecated and is replaced by the method wca.coinertia of the generic wca function.

Author(s)

Stephane Dray stephane.dray@univ-lyon1.fr and Jean Thioulouse jean.thioulouse@univ-lyon1.fr

References

Franquet E., Doledec S., and Chessel D. (1995) Using multivariate analyses for separating spatial and temporal effects within species-environment relationships. Hydrobiologia, 300, 425–431.

See Also

coinertia, within

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
data(meaudret)
pca1 <- dudi.pca(meaudret$env, scan = FALSE, nf = 4)
pca2 <- dudi.pca(meaudret$spe, scal = FALSE, scan = FALSE, nf = 4)
   
wit1 <- wca(pca1, meaudret$design$site, scan = FALSE, nf = 2)
wit2 <- wca(pca2, meaudret$design$site, scan = FALSE, nf = 2)
coiw <- coinertia(wit1, wit2, scannf = FALSE)

coi <- coinertia(pca1, pca2, scannf = FALSE, nf = 3)
coi.w <- wca(coi, meaudret$design$site, scannf = FALSE)
## coiw and coi.w are equivalent

plot(coi.w)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.