Check.PA: Verifies that an object belongs to the '"PA"' class.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Check.PA.R

Description

Checks if an object is of class "PA" (Parallel analysis).

Usage

1

Arguments

PA

An object to be checked for class "PA".

Value

Returns TRUE if input object if of class "PA" and has all the necessary components. Returns FALSE otherwise.

Author(s)

Carlos A. Arias carias@icfes.gov.co and Victor H. Cervantes vcervantes@icfes.gov.co

See Also

PA, print.PA, coef.PA, CountEigen.PA, plot.PA, quantile.PA

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# # Run Parallel Analysis for binary data conforming to the Rasch model
data(simRaschData)
binaryRaschPA <- PA(simRaschData, percentiles = c(0.95, 0.99), nReplicates = 200,
                    type = "binary", algorithm = "polychoric")
print(binaryRaschPA)

# # Check if binaryRaschPA is a PA object
Check.PA(binaryRaschPA)  # Should return TRUE
Check.PA(simRaschData)  # Should return FALSE

# # Run Parallel Analysis for binary data conforming to the 2PL model
data(sim2plData)
binary2plPA <- PA(sim2plData, percentiles = c(0.95, 0.99), nReplicates = 200,
                  type = "binary", algorithm = "polychoric")
print(binary2plPA)

# # Check if binary2plPA is a PA object
Check.PA(binary2plPA)  # Should return TRUE
Check.PA(simRaschData)  # Should return FALSE

pcaPA documentation built on May 29, 2017, 6:53 p.m.