* using log directory 'd:/Rcompile/CRANpkg/local/2.12/random.polychor.pa.Rcheck' * using R version 2.12.2 (2011-02-25) * using platform: i386-pc-mingw32 (32-bit) * using session charset: ISO8859-1 * checking for file 'random.polychor.pa/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'random.polychor.pa' version '1.1.3' * package encoding: latin1 * checking package dependencies ... OK * checking if this is a source package ... OK * checking whether package 'random.polychor.pa' can be installed ... OK * checking package directory ... OK * checking for portable file names ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking for unstated dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking examples ... ERROR Running examples in 'random.polychor.pa-Ex.R' failed The error most likely occurred in: > ### Name: random.polychor.pa > ### Title: A Parallel Analysis With Randomly Generated Polychoric > ### Correlation Matrices > ### Aliases: random.polychor.pa > ### Keywords: PARALLEL ANALISYS POLYCHORIC CORRELATION EXPLORATORY FACTOR > ### ANALYSIS > > ### ** Examples > > ### EXAMPLE 1: > ### example data > raw.data<-data.frame(ss=1:10, v1=c(1,2,2,1,2,2,2,1,2,1), + v2=c(2,3,3,2,3,3,1,2,3,1), + v3=c(2,4,2,3,3,2,1,3,2,4), + v4=c(3,1,3,2,3,2,3,2,2,3), + v5=c(3,1,4,5,3,4,3,4,2,5)) > raw.item.data <- (raw.data[,2:6]) > summary (raw.item.data) v1 v2 v3 v4 v5 Min. :1.0 Min. :1.0 Min. :1.0 Min. :1.0 Min. :1.0 1st Qu.:1.0 1st Qu.:2.0 1st Qu.:2.0 1st Qu.:2.0 1st Qu.:3.0 Median :2.0 Median :2.5 Median :2.5 Median :2.5 Median :3.5 Mean :1.6 Mean :2.3 Mean :2.6 Mean :2.4 Mean :3.4 3rd Qu.:2.0 3rd Qu.:3.0 3rd Qu.:3.0 3rd Qu.:3.0 3rd Qu.:4.0 Max. :2.0 Max. :3.0 Max. :4.0 Max. :3.0 Max. :5.0 > cor(raw.item.data) v1 v2 v3 v4 v5 v1 1.0000000 0.57497921 -0.35634832 -0.1230915 -0.57835174 v2 0.5749792 1.00000000 0.02793994 -0.4246503 -0.44812908 v3 -0.3563483 0.02793994 1.00000000 -0.3947710 0.05455447 v4 -0.1230915 -0.42465029 -0.39477102 1.0000000 0.42714107 v5 -0.5783517 -0.44812908 0.05455447 0.4271411 1.00000000 > eigen(cor(raw.item.data)) $values [1] 2.3118867 1.4752489 0.5601779 0.4065697 0.2461168 $vectors [,1] [,2] [,3] [,4] [,5] [1,] -0.5190764 0.38381816 -0.1110524 -0.27728865 0.7028668 [2,] -0.5365343 -0.04716067 -0.7045608 0.05994046 -0.4581573 [3,] 0.0354234 -0.74452840 -0.1361398 -0.63222593 0.1617991 [4,] 0.3874521 0.54384266 -0.1925118 -0.65385638 -0.2992107 [5,] 0.5397376 -0.01929021 -0.6600505 0.30377681 0.4246931 > > random.polychor.pa(nrep=5, data.matrix=raw.item.data, q.eigen=.99) computation starts at: 10:41:47 number of units (rows) in data.matrix: 10 number of variables (cols) in data.matrix: 5 the following table shows the groups of items with diffent number of categories found in your data.matrix: Items Categories Min.Cat Max.Cat 1 GROUP 1 2 1 2 2 GROUP 2 3 1 3 3 GROUP 1 4 1 4 4 GROUP 1 5 1 5 Loading required package: mvtnorm Loading required package: polycor Loading required package: sfsmisc Attaching package: 'polycor' The following object(s) are masked from 'package:psych': polyserial Warning in cor.smooth(mat) : Matrix was not positive definite, smoothing was done The first simulation took 1.063 The whole simulation will take no less than 5.315 secs. to terminate Warning in cor.smooth(mat) : Matrix was not positive definite, smoothing was done Warning in cor.smooth(mat) : Matrix was not positive definite, smoothing was done Warning in cor.smooth(mat) : Matrix was not positive definite, smoothing was done Warning in optimise(f, interval = c(-1, 1)) : NA/Inf replaced by maximum positive value Warning in optimise(f, interval = c(-1, 1)) : NA/Inf replaced by maximum positive value Warning in cor.smooth(mat) : Matrix was not positive definite, smoothing was done ******* RESULTS: # of factors (PCA) for Velicer MAP criterium (Polychoric corr): 0 # of factors (PCA) for Velicer MAP(4th power)(Polychoric corr): 0 # of factors (PCA) for Velicer MAP criterium (Pearson corr)...: 0 # of factors (PCA) for Velicer MAP(4th power)(Pearson corr)...: 0 Error: subscript out of bounds Execution halted