Learn R Programming

CAinterprTools (version 1.1.0)

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

Description

This function tests the significance of the CA dimensions by means of permutation of the input contingency table. Number of permutation set at 999 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. Permuted p-values are displayed into the chart and also returned as dataframe.

Usage

sig.dim.perm.scree(data, B = 999, 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 (999 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.

Value

The function returns a dataframe storing the permuted p-values of each CA dimension.

See Also

sig.dim.perm

Examples

Run this code
# NOT RUN {
data(greenacre_data)

pvalues <- sig.dim.perm.scree(greenacre_data, 99)

# }

Run the code above in your browser using DataLab