Package pcapa. September 16, 2016

Similar documents
Package DFIT. February 19, 2015

Package mrm. December 27, 2016

Package corclass. R topics documented: January 20, 2016

Package mixphm. July 23, 2015

Package datasets.load

Package rpst. June 6, 2017

Package Mondrian. R topics documented: March 4, Type Package

Package logspline. February 3, 2016

Package pwrrasch. R topics documented: September 28, Type Package

Package svalues. July 15, 2018

Package panelview. April 24, 2018

Package pairsd3. R topics documented: August 29, Title D3 Scatterplot Matrices Version 0.1.0

Package CINID. February 19, 2015

Package areaplot. October 18, 2017

Package sure. September 19, 2017

Package RaschSampler

Package Rwinsteps. February 19, 2015

Package binmto. February 19, 2015

Package texteffect. November 27, 2017

Package strat. November 23, 2016

Package DPBBM. September 29, 2016

Package RCA. R topics documented: February 29, 2016

Package fbroc. August 29, 2016

Package MultiOrd. May 21, 2016

Package qboxplot. November 12, qboxplot... 1 qboxplot.stats Index 5. Quantile-Based Boxplots

Package JOP. February 19, 2015

Package MPCI. October 25, 2015

Package Combine. R topics documented: September 4, Type Package Title Game-Theoretic Probability Combination Version 1.

Package PIPS. February 19, 2015

Package PCADSC. April 19, 2017

Package anidom. July 25, 2017

Package ridge. R topics documented: February 15, Title Ridge Regression with automatic selection of the penalty parameter. Version 2.

Package cgh. R topics documented: February 19, 2015

Package glmnetutils. August 1, 2017

Package plink. April 26, 2017

Package lcc. November 16, 2018

RKWard: IRT analyses and person scoring with ltm

Package pse. June 11, 2017

Package MatrixCorrelation

Package ParetoPosStable

Package manet. September 19, 2017

Package QCAtools. January 3, 2017

Package ScoreGGUM. February 19, 2015

Package DiffCorr. August 29, 2016

Package SparseFactorAnalysis

Package MTLR. March 9, 2019

Package fso. February 19, 2015

Package MultiVarMI. April 9, 2018

Package mmtsne. July 28, 2017

Package EnQuireR. R topics documented: February 19, Type Package Title A package dedicated to questionnaires Version 0.

Package reghelper. April 8, 2017

Package naivebayes. R topics documented: January 3, Type Package. Title High Performance Implementation of the Naive Bayes Algorithm

Package missforest. February 15, 2013

Package GCAI.bias. February 19, 2015

Package OutlierDC. R topics documented: February 19, 2015

Package esabcv. May 29, 2015

Package oaxaca. January 3, Index 11

Package Funclustering

Package ICEbox. July 13, 2017

Detecting Polytomous Items That Have Drifted: Using Global Versus Step Difficulty 1,2. Xi Wang and Ronald K. Hambleton

Package uclaboot. June 18, 2003

Package cutoffr. August 29, 2016

Package EFS. R topics documented:

Package svmpath. R topics documented: August 30, Title The SVM Path Algorithm Date Version Author Trevor Hastie

Package ordinalclust

Package qrfactor. February 20, 2015

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2

Package assortnet. January 18, 2016

Package kofnga. November 24, 2015

Package pvclust. October 23, 2015

Package gppm. July 5, 2018

The simpleboot Package

Package qvcalc. R topics documented: September 19, 2017

Package abf2. March 4, 2015

Package OLScurve. August 29, 2016

Package CorporaCoCo. R topics documented: November 23, 2017

Package spark. July 21, 2017

Package dynsim. R topics documented: August 29, 2016

Package MultiMeta. February 19, 2015

Package kirby21.base

Package ICSOutlier. February 3, 2018

Package ClustGeo. R topics documented: July 14, Type Package

Package ic10. September 23, 2015

Package BinNor. February 10, 2018

Package MIICD. May 27, 2017

Package SFtools. June 28, 2017

Package jrt. January 4, 2019

Package bayesdp. July 10, 2018

Package longclust. March 18, 2018

Package prettygraphs

Package queuecomputer

Package gains. September 12, 2017

Package GFD. January 4, 2018

Package bife. May 7, 2017

Package replicatedpp2w

Package edear. March 22, 2018

Package superheat. February 4, 2017

Package densityclust

Package Daim. February 15, 2013

Package PRISMA. May 27, 2018

Transcription:

Package pcapa September 16, 2016 Title Parallel Analysis for Ordinal and Numeric Data using Polychoric and Pearson Correlations with S3 Classes Version 2.0.2 Date 2016-09-14 Author Carlos A. Arias <caariasr22@gmail.com> and Victor H. Cervantes <Herulor@gmail.com>. Maintainer Carlos A. Arias <caariasr22@gmail.com> Depends R (>= 3.3.0), polycor, ltm, stats, ggplot2, mc2d, sfsmisc A set of functions to perform parallel analysis for principal components analysis intended mainly for large data sets. It performs a parallel analysis of continuous, ordered (including dichotomous/binary as a special case) or mixed type of data associated with a principal components analysis. Polychoric correlations among ordered variables, Pearson correlations among continuous variables and polyserial correlation between mixed type variables (one ordered and one continuous) are used. Whenever the use of polyserial or polychoric correlations yields a non positive definite correlation matrix, the resulting matrix is transformed into the nearest positive definite matrix. This is a continued work based on a previous version developed at the Colombian Institute for the evaluation of education - ICFES. License GPL (>= 2) NeedsCompilation yes Repository CRAN Date/Publication 2016-09-16 18:15:52 R topics documented: CalculatePABinary..................................... 2 CalculatePAContinuous................................... 3 CalculatePAMixed..................................... 5 1

2 CalculatePABinary CalculatePAOrdered..................................... 6 Check.PA.......................................... 7 coef.pa........................................... 8 CountEigen.PA....................................... 9 mixedscience........................................ 10 PA.............................................. 11 plot.pa........................................... 14 print.pa........................................... 15 quantile.pa......................................... 16 sim2pldata......................................... 17 simraschdata........................................ 18 Index 19 CalculatePABinary Parallel Analysis for Dichotomous Data. Obtains a parallel analysis for dichotomous data. CalculatePABinary(dataMatrix, percentiles = 0.99,nReplicates = 200, use = "complete.obs", algorithm = "polycor") datamatrix percentiles nreplicates use algorithm matrix or data.frame of binary or dichotomous variables. vector of percentiles to report. number of simulations to produce for estimating the eigenvalues distribution 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. 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. 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 simulatedeigens data.frame containing the simulated eigenvalues

CalculatePAContinuous 3 Note This is an auxiliary function for the "PA" function. CalculatePAOrdered, CalculatePAContinuous, CalculatePAMixed, PA, quantile.pa # # NOT RUN # # Run Parallel Analysis for binary data conforming to the Rasch model # # using the polycor package # data(simraschdata) # binaryraschpa <- PA(simRaschData, percentiles = c(0.95, 0.99), # nreplicates = 200, type = "binary") # print(binaryraschpa) # # Run Parallel Analysis for binary data conforming to the Rasch model # # using the Cpolychoric C++ function data(simraschdata) binaryraschpa <- PA(simRaschData, percentiles = c(0.95, 0.99), nreplicates = 200, print(binaryraschpa) # # NOT RUN # # Run Parallel Analysis for binary data conforming to the 2PL model # # using the polycor package # data(sim2pldata) # binary2plpa <- PA(sim2plData, percentiles = c(0.95, 0.99), nreplicates = 200, # type = "binary") # print(binary2plpa) # # Run Parallel Analysis for binary data conforming to the 2PL model # # using the polychoric C++ function data(sim2pldata) binary2plpa <- PA(sim2plData, percentiles = c(0.95, 0.99), nreplicates = 200, print(binary2plpa) CalculatePAContinuous Parallel Analysis for continuous data. Obtains a parallel analysis for continuous data.

4 CalculatePAContinuous CalculatePAContinuous(dataMatrix, percentiles = 0.99, nreplicates = 200, use = "complete.obs", algorithm = "pearson") datamatrix percentiles nreplicates use algorithm matrix or data.frame of binary or dichotomous variables. vector of percentiles to report. number of simulations to produce for estimating the eigenvalues distribution 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. string specifying the estimation algorithm. In the case of continuous variables, only the Pearson correlations are used. Ignored if different to "pearson". 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 simulatedeigens data.frame containing the simulated eigenvalues Note This is an auxiliary function for the "PA" function. CalculatePABinary, CalculatePAOrdered, CalculatePAMixed, PA # # Run Parallel analyis of numeric data (Iris) data(iris) continuouspa <- PA(iris[, -5], percentiles = c(0.90, 0.99), nreplicates = 200, type = "continuous", algorithm = "pearson") print(continuouspa)

CalculatePAMixed 5 CalculatePAMixed Parallel Analysis for numeric and ordered mixed data. Obtains a parallel analysis for numeric and ordered mixed data. CalculatePAMixed(dataMatrix, percentiles = 0.99, nreplicates = 200, use = "complete.obs", algorithm = "polycor") datamatrix percentiles nreplicates use algorithm matrix or data.frame of ordered variables. vector of percentiles to report. number of simulations to produce for estimating the eigenvalues distribution Missing values 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. string specifying the correlation estimation method. In the case of mixed variables, only the polycor package is currently used, so this value must always be "polycor". Note 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 simulatedeigens data.frame containing the simulated eigenvalues This is an auxiliary function for the "PA" function. CalculatePABinary, CalculatePAContinuous, CalculatePAOrdered, PA

6 CalculatePAOrdered # # NOT RUN # # Run Parallel analysis of mixed ordered and continuous data # data(mixedscience) # mixedpa <- PA(mixedScience, percentiles = c(0.90, 0.99), # nreplicates = 200, type = "mixed") # print(mixedpa) CalculatePAOrdered Parallel Analysis for Ordered Data. Obtains a parallel analysis for ordered data. CalculatePAOrdered(dataMatrix, percentiles = 0.99, nreplicates = 200, use = "complete.obs", algorithm = "polycor") datamatrix percentiles nreplicates use algorithm matrix or data.frame of ordered variables. vector of percentiles to report. number of simulations to produce for estimating the eigenvalues distribution 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. 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. Note 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 simulatedeigens data.frame containing the simulated eigenvalues This is an auxiliary function for the "PA" function.

Check.PA 7 CalculatePABinary, CalculatePAContinuous, CalculatePAMixed, PA # # 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) Check.PA Verifies that an object belongs to the "PA" class. Checks if an object is of class "PA" (Parallel analysis). Check.PA(PA) PA An object to be checked for class "PA". Returns TRUE if input object if of class "PA" and has all the necessary components. Returns FALSE otherwise.

8 coef.pa PA, print.pa, coef.pa, CountEigen.PA, plot.pa, quantile.pa # # Run Parallel Analysis for binary data conforming to the Rasch model data(simraschdata) binaryraschpa <- PA(simRaschData, percentiles = c(0.95, 0.99), nreplicates = 200, 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, print(binary2plpa) # # Check if binary2plpa is a PA object Check.PA(binary2plPA) # Should return TRUE Check.PA(simRaschData) # Should return FALSE coef.pa Eigenvalue and percentile extraction of a "PA" object. coef method for objects of class "PA", produced by PA. ## S3 method for class 'PA' coef(object,...) object an object of class "PA"... not used

CountEigen.PA 9 An object of class "matrix" with the observed eigenvalues and the percentiles. PA, print.pa, Check.PA, CountEigen.PA, plot.pa, quantile.pa # # Run Parallel Analysis for binary data conforming to the Rasch model data(simraschdata) binaryraschpa <- PA(simRaschData, percentiles = c(0.95, 0.99), nreplicates = 200, print(binaryraschpa) binaryraschpaeigens <- coef(binaryraschpa) binaryraschpaeigens # Save the matrix of observed # eigenvalues and estimated # eigenvalue percentiles CountEigen.PA Number of observed eigenvalues that exceed a given set of percentiles. Counts the number of observed eigenvalues that exceed the given percentiles. CountEigen.PA(PA, percentiles = NULL) PA percentiles an object of class "PA". the percentiles that ought to be plotted, defaults to those in the object. A named numeric vector indicating the number of eigenvalues that are greater than the eigenvalues distribution percentiles

10 mixedscience PA, print.pa, coef.pa, Check.PA, plot.pa, quantile.pa # # Run Parallel Analysis for binary data conforming to the Rasch model data(simraschdata) binaryraschpa <- PA(simRaschData, percentiles = c(0.95, 0.99), nreplicates = 200, print(binaryraschpa) # # Number of retained factors ncomponents <- CountEigen.PA(binaryRaschPA, percentiles =.99) ncomponents["p99"] # # Run Parallel Analysis for binary data conforming to the 2PL model data(sim2pldata) binary2plpa <- PA(sim2plData, percentiles = c(0.95, 0.99), nreplicates = 200, print(binary2plpa) # # Number of retained factors ncomponents <- CountEigen.PA(binary2plPA, percentiles =.99) ncomponents["p99"] mixedscience Simulated data from a normal distribution added to the Science data set from package "ltm". Format Mixed ordered (Science dataset from package "ltm" coming from the Consumer Protection and Perceptions of Science and Technology section of the 1992 Euro-Barometer Survey) and continuous (simulated from a normal distribution) data. data(mixedscience) A data frame with 392 observations on the following 12 variables: Comfort an ordered factor with levels strongly disagree < disagree < agree < strongly agree Environment an ordered factor with levels strongly disagree < disagree < agree < strongly agree Work an ordered factor with levels strongly disagree < disagree < agree < strongly agree

PA 11 Future an ordered factor with levels strongly disagree < disagree < agree < strongly agree Technology an ordered factor with levels strongly disagree < disagree < agree < strongly agree Industry an ordered factor with levels strongly disagree < disagree < agree < strongly agree Benefit an ordered factor with levels strongly disagree < disagree < agree < strongly agree X1 a numeric vector X2 a numeric vector X3 a numeric vector X4 a numeric vector X5 a numeric vector References Karlheinz, R. and Melich, A. (1992). Euro-Barometer 38.1: Consumer Protection and Perceptions of Science and Technology. INRA (Europe), Brussels. [computer file] Rizopoulos, D. (2006). ltm: An R package for Latent Variable Modelling and Item Response Theory Analyses. Journal of Statistical Software, 17(5), 1 25. # # NOT RUN # data(mixedscience) # mixedpa <- PA(mixedScience, percentiles = c(0.90, 0.99), nreplicates = 200, # type = "mixed") # print(mixedpa) PA General function to perform parallel analysis of continuous, ordered or mixed type data. Creates an object of class PA using one of the PA functions. It performs a parallel analysis of continuous, orderd (including dichotomous/binary as a special case) or mixed type of data associated with a principal components analysis. Polychoric correlations among ordered variables, Pearson correlations among continuous variables and polyserial correlation between mixed type variables (one ordered and one continuous) are used. Whenever the use of polyserial or polychoric correlations yields a non positive definite correlation matrix, the resulting matrix is transformed into the nearest positive definite matrix by nearcor. PA(dataMatrix, percentiles = 0.99, nreplicates = 200, type = "continuous", use = "complete.obs", algorithm = "polycor")

12 PA datamatrix percentiles nreplicates type use algorithm matrix or data.frame of continuous numeric variables. vector of percentiles to report. number of simulations to produce for estimating the eigenvalues distribution Data type: "continuous" if the data is continuous. "binary" if the data is dichotomous. "ordered" if the data is ordinal. "mixed" if the data is mixed rodered and continuous. 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. string specifying the correlation estimation algorithm. Polychoric correlation estimation method: "polycor" for estimates using the polycor package, "polychoric" for estimates using the C++ function polychoric. Pearson correlation estimation: "pearson", only used for continuous data. Details This function generates an object of (S3) class "PA" by using one of the four support functions (CalculatePAContinuous, CalculatePAOrdered, CalculatePABinary, CalculatePAMixed). As noted by Presaghi & Desimoni (2011), when using the parallel analysis approach to select the number of components to retain, observed and simulated correlation matrices ought to be of the same kind. The purporse with this package is to provide a more flexible framework to work with parallel anaylisis data. For the case where all variables are ordered polytomous the C++ function polychoric or the function "polychor" from package "polycor" may be used. Pearson correlation from "cor" function is used; finally, for sets that mix variables of both types, the "polycor" package is used. Furthermore, objects of class "PA" retain the eigenvalues for simulated correlation matrices allowing the user to avoid multiple simulations for changing certain parameters such as the specific qunatile used to decide on the retained number of components; also some missing observations may be handled by the "use" parameter. An object of class "PA" with the following: observed percentiles data.frame containing the observed eigenvalues. data.frame containing the estimated percentiles of the eigenvalues distribution simulatedeigens data.frame containing the simulated eigenvalues Note The algorithm "polychoric" is only implemented for binary/dichotomous and ordered polytomous data. When mixed type data are used only "polycor" is currently available.

PA 13 References Horn, J. L. (1965). A rationale and test for the number of factors in factor analysis. Psychometrika, 30, 179 185. Glorfeld, L. W. (1995). An Improvement on Horn s Parallel Analysis Methodology for Selecting the Correct Number of Factors to Retain. Educational and Psychological Measurement, 55(3), 377 393. CalculatePAContinuous, CalculatePAOrdered, CalculatePABinary, CalculatePAMixed, print.pa, plot.pa, coef.pa, quantile.pa, CountEigen.PA, Check.PA # # NOT RUN # # Run Parallel Analysis for binary data conforming to the Rasch model # # using the polycor package # data(simraschdata) # binaryraschpa <- PA(simRaschData, percentiles = c(0.95, 0.99), nreplicates = 200, # type = "binary") # print(binaryraschpa) # # Run Parallel Analysis for binary data conforming to the Rasch model # # using the polychoric C++ function data(simraschdata) binaryraschpa <- PA(simRaschData, percentiles = c(0.95, 0.99), nreplicates = 200, print(binaryraschpa) # # NOT RUN # # Run Parallel Analysis for binary data conforming to the 2PL model # # using the polycor package # data(sim2pldata) # binary2plpa <- PA(sim2plData, percentiles = c(0.95, 0.99), nreplicates = 200, # type = "binary") # print(binary2plpa) # # Run Parallel Analysis for binary data conforming to the 2PL model # # using the polychoric C++ function data(sim2pldata) binary2plpa <- PA(sim2plData, percentiles = c(0.95, 0.99), nreplicates = 200, print(binary2plpa) # # NOT RUN # # Run Parallel analysis for ordered polytomous data using the polycor package # data(science)

14 plot.pa # 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 the 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) # # NOT RUN # # Run Parallel analysis of mixed ordered and continuous data # data(mixedscience) # mixedpa <- PA(mixedScience, percentiles = c(0.90, 0.99), nreplicates = 200, # type = "mixed") # print(mixedpa) # # Run Parallel analyis of numeric data (Iris) data(iris) continuouspa <- PA(iris[, -5], percentiles = c(0.90, 0.99), nreplicates = 200, type = "continuous", algorithm = "pearson") print(continuouspa) plot.pa Plot method for PA objects. plot method for objects of class PA. Plots the scree plot for a "PA" object for the selected percentiles using ggplot. ## S3 method for class 'PA' plot(x, percentiles = NULL, main = NULL, xlab = NULL, ylab = NULL, grouplabel = NULL, colour = TRUE, linetype = TRUE, observed = "Observed", percentile = "th percentile", position = "after", sep = "",...) x percentiles main xlab ylab grouplabel an object of class "PA". The percentiles that ought to be plotted. Defaults to those in the PA object. Graph title instead of default. Label for x axis instead of default. Label for y axis instead of default. Legend box name instead of default.

print.pa 15 colour linetype observed percentile position sep... Not used. Logical indicating whether to identify the observed eigenvalues and percentiles by colour. Logical indicating whether to identify the observed eigenvalues and percentiles by linetype. Label for the observed data, default is "observed" Graph title instead of default. Position for the percentile label. "after" will position the label after the percentile number. "before" will position the label before the percentile number Character string to separate the label from the percentiles number. ggplot object for plotting the scree plot. PA, print.pa, Check.PA, CountEigen.PA, coef.pa, quantile.pa # # Run Parallel Analysis for binary data conforming to the Rasch model # # using the polychoric C++ function data(simraschdata) binaryraschpa <- PA(simRaschData, percentiles = c(0.95, 0.99), nreplicates = 200, print(binaryraschpa) plot(binaryraschpa, percentiles = 0.99, grouplabel = "") # Plots the scree-plot # with the 99th percentile print.pa Print method for PA objects. print method for objects of class "PA". Prints the observed eigenvalues and the percentiles as a matrix. ## S3 method for class 'PA' print(x, digits = max(3, getoption("digits") - 3), observed = "Observed", percentile = "th percentile", position = "after", sep = "",...)

16 quantile.pa x digits observed percentile position sep... Not used. an object of class "PA". number of digits to print. Label for the observed data, default is "observed" Graph title instead of default. Position for the percentile label. "after" will position the label after the percentile number. "before" will position the label before the percentile number Character string to separate the label from the percentiles number. NULL PA, plot.pa, Check.PA, CountEigen.PA, coef.pa, quantile.pa # # Run Parallel Analysis for binary data conforming to the Rasch model # # using the polycor package data(simraschdata) binaryraschpa <- PA(simRaschData, percentiles = c(0.95, 0.99), nreplicates = 200, print(binaryraschpa) quantile.pa Generate new quantiles based on given percentiles for a PA object. Calculates arbitrary quantiles from the simulatedeigens in a "PA" object. ## S3 method for class 'PA' quantile(x, percentiles =.99,...)

sim2pldata 17 x percentiles... Not used. An object of class "PA". The new percentiles to replace the ones found in the "PA" object. An object of class "PA" with the percentiles data.frame replaced by those from the percentiles argument. PA, print.pa, Check.PA, CountEigen.PA, coef.pa, plot.pa # # Using the 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) # Shows the eigenvalues as a matrix head(orderedpa$simulatedeigens) # Shows the first six iterations # # Get different quantiles from a PA object quantile(orderedpa, percentiles = c(0.1, 0.2, 0.5)) sim2pldata Simulated data conforming to the 2pl model. Dichotomous data simulated from a 2pl model. data(sim2pldata) Format The format is: num [1:300, 1:15] 1 0 1 1 1 1 0 1 1 0...

18 simraschdata Source Data simulated using the erm package. data(sim2pldata) binary2plpa <- PA(sim2plData, percentiles = c(0.95, 0.99), nreplicates = 200, print(binary2plpa) simraschdata Simulated data conforming to the Rasch Model. Dichotomous data simulated from the Rasch model using package erm. data(simraschdata) Format Object whit class data.frame of 300 rows and 15 columns.

Index Topic PA CalculatePABinary, 2 CalculatePAContinuous, 3 CalculatePAMixed, 5 CalculatePAOrdered, 6 Check.PA, 7 CountEigen.PA, 9 PA, 11 plot.pa, 14 quantile.pa, 16 Topic Parallel Analysis PA, 11 Topic ParallelA PA, 11 Topic coef coef.pa, 8 Topic continuous CalculatePAContinuous, 3 Topic datasets mixedscience, 10 sim2pldata, 17 simraschdata, 18 Topic dichotomous CalculatePABinary, 2 Topic methods coef.pa, 8 print.pa, 15 Topic mixed CalculatePAMixed, 5 Topic ordered CalculatePAOrdered, 6 Topic plot plot.pa, 14 Topic print print.pa, 15 Topic quantile quantile.pa, 16 CalculatePAMixed, 3, 4, 5, 7, 12, 13 CalculatePAOrdered, 3 5, 6, 12, 13 Check.PA, 7, 9, 10, 13, 15 17 coef.pa, 8, 8, 10, 13, 15 17 CountEigen.PA, 8, 9, 9, 13, 15 17 mixedscience, 10 PA, 3 5, 7 10, 11, 15 17 plot.pa, 8 10, 13, 14, 16, 17 print.pa, 8 10, 13, 15, 15, 17 quantile.pa, 3, 8 10, 13, 15, 16, 16 sim2pldata, 17 simraschdata, 18 CalculatePABinary, 2, 4, 5, 7, 12, 13 CalculatePAContinuous, 3, 3, 5, 7, 12, 13 19