sig.dim.perm.scree: Scree plot to test the significance of CA dimensions by means...

Description Usage Arguments Examples

Description

This function allows to test the significance of the CA dimensions by means of permutation of the input contingency table. Number of permutation set at 1000 by default, but can be increased by the user. The function return a scree-plot displaying for each dimension the observed eigenvalue and the 95th percentile of the permuted distribution of the corresponding eigenvalue. Observed eigenvalues that are larger than the corresponding 95th percentile are significant at least at alpha 0.05. P values are displayed into the chart.

Usage

1
sig.dim.perm.scree(data, B = 1000, cex = 0.7, pos = 4, offset = 0.5)

Arguments

data:

name of the contingency table (must be in dataframe format).

B:

number of permutations to be used (1000 by default).

cex:

controls the size of the labels reporting the p values; see the help documentation of the text() function by typing ?text.

pos:

controls the position of the labels reporting the p values; see the help documentation of the text() function by typing ?text.

offset:

controls the offset of the labels reporting the p values; see the help documentation of the text() function by typing ?text.

Examples

1
2
data(greenacre_data)
sig.dim.perm.scree(greenacre_data, 10000)

gianmarcoalberti/CAinterprTools documentation built on May 17, 2019, 4:18 a.m.