interpret.fpcat: Scores of the 'fpcat' function vs. moments of the densities

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/interpret.fpcat.R

Description

This function applies to an object of class fpcat and does the same as for an object of class fpcad: it plots the principal scores vs. the moments of the densities (means, standard deviations, variances, correlations, skewness and kurtosis coefficients), and computes the correlations between these scores and moments.

In the next version of the package, this function will be updated by some more graphics.

Usage

1
2
3
## S3 method for class 'fpcat'
interpret(x, nscore = 1:3, moment=c("mean", "sd", "var", "cov", "cor",
    "skewness", "kurtosis", "all"), ...)

Arguments

x

object of class fpcat (returned by the fpcat function).

nscore

numeric vector. Selects the columns of the data frame x$scores to be interpreted.

Warning: Its components cannot be greater than the nb.factors argument in the call of the fpcat function.

moment

characters string. Selects the moments to cross with scores:

  • "mean" (means)

  • "sd" (standard deviations)

  • "cov" (covariances)

  • "cor" (correlation coefficients)

  • "skewness" (skewness coefficients)

  • "kurtosis" (kurtosis coefficients)

  • "all" (for univariate densities only. It simultaneously considers means, standard deviations, variances and skewness and kurtosis coefficients)

...

Arguments to be passed to methods.

Details

A new graphics device is opened for each score column. A device can contain up to 9 graphs. If there are too many (more than 36) graphs for each score, a multipage PDF file is created in the current working directory, and the graphs are displayed in it.

The number of principal scores to be interpreted cannot be greater than nb.factors of the data frame x$scores returned by the function fpcat.

Value

Returns a list including:

pearson

matrix of Pearson correlations between selected scores and moments.

spearman

matrix of Spearman correlations between selected scores and moments.

Author(s)

Rachid Boumaza, Pierre Santagostini, Smail Yousfi, Gilles Hunault, Sabine Demotes-Mainard

References

Boumaza, R., Yousfi, S., Demotes-Mainard, S. (2015). Interpreting the principal component analysis of multivariate density functions. Communications in Statistics - Theory and Methods, 44 (16), 3321-3339.

See Also

fpcat; plot.fpcat.

Examples

1
2
3
4
5
6
7
8
9
# Alsacian castles with their building year
data(castles)
castyear <- foldert(lapply(castles, "[", 1:4))
fpcayear <- fpcat(castyear, group.name = "year")
interpret(fpcayear)
## Not run: 
interpret(fpcayear, moment="var")

## End(Not run)

dad documentation built on March 16, 2021, 9:05 a.m.