Learn R Programming

CCTpack (version 1.5.2)

screeplot: Generate a scree plot

Description

Screeplot method for CCTpack data, or a cctfit object of class 'cct'; equivalent to function cctscree().

Usage

screeplot(x, ...)

Arguments

x

a 2-dimensional matrix or dataframe, missing values should be input as NA, or a cctfit object of class 'cct'.

...

Additional arguments: polych=T (for ordinal data only), to use the polychoric correlations rather than Pearson correlations.

Details

The scree plot is generated from the respondent by respondent correlation (Pearson) matrix.

Examples

Run this code
# NOT RUN {
data(hotcold)
screeplot(hotcold)
## With this example data, a scree plot with 2 substantial factors 
##               (suggesting two cultures) is produced. 
# }

Run the code above in your browser using DataLab