CalculatePAOrdered: Parallel Analysis for Ordered Data.

Description Usage Arguments Value Note Author(s) See Also Examples

Description

Obtains a parallel analysis for ordered data.

Usage

1
2
CalculatePAOrdered(dataMatrix, percentiles = 0.99, nReplicates = 200,
                   use = "complete.obs", algorithm = "polycor")

Arguments

dataMatrix

matrix or data.frame of ordered variables.

percentiles

vector of percentiles to report.

nReplicates

number of simulations to produce for estimating the eigenvalues distribution under independence.

use

Missing value handling method: If "complete.obs", remove observations with any missing data; if "pairwise.complete.obs", compute each correlation using all observations with valid data for that pair of variables.

algorithm

string specifying the correlation estimation algorithm. Polychoric correlation estimation method: "polycor" for estimates using the polycor package, "polychoric" for estimates using the C++ function Cpolychoric.

Value

Returns a list object with the following:

observed

data.frame containing the observed eigenvalues.

percentiles

data.frame containing the estimated percentiles of the eigenvalues distribution under independence.

simulatedEigenValues

data.frame containing the simulated eigenvalues under independence.

Note

This is an auxiliary function for the "PA" function.

Author(s)

Carlos A. Arias caariasr22@gmail.com and Victor H. Cervantes herulor@gmail.com

See Also

CalculatePABinary, CalculatePAContinuous, CalculatePAMixed, PA

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
# # NOT RUN
# # Run Parallel analysis for ordered polytomous data using the polycor package
# data(Science)
# Science[, ] <- lapply(Science, as.ordered)
# orderedPA <- PA(Science, percentiles = c(0.90, 0.99), nReplicates = 200,
#                 type = "ordered")
# print(orderedPA)

# # Run Parallel analysis for ordered polytomous data using 
# # he polychoric C++ function
data(Science)
Science[, ] <- lapply(Science, as.ordered)
orderedPA   <- PA(Science, percentiles = c(0.90, 0.99), nReplicates = 200,
                 type = "ordered", algorithm = "polychoric")
print(orderedPA)

caariasr/pcaPA documentation built on May 13, 2019, 10:37 a.m.