fullFact: fullFact

Description Usage Arguments Value Author(s) See Also Examples

View source: R/fullFact.R

Description

This function provides a userfriendly interface to a number of advanced factor analysis functions in the psych package.

Usage

1
fullFact(dat = NULL, items = NULL, rotate = "oblimin")

Arguments

dat

Datafile to analyse; if NULL, a pop-up is provided to select a file.

items

Which variables (items) to factor-analyse. If NULL, all are selected.

rotate

Which rotation to use (see psych package).

Value

The outcomes, which are printed to the screen unless assigned.

Author(s)

Gjalt-Jorn Peters

Maintainer: Gjalt-Jorn Peters <gjalt-jorn@userfriendlyscience.com>

See Also

fa.parallel, vss

Examples

1
2
3
4
5
## Not run: 
  ### Not run to save processing during package testing
  fullFact(attitude);

## End(Not run)

Example output

Registered S3 method overwritten by 'GGally':
  method from   
  +.gg   ggplot2
Registered S3 methods overwritten by 'lme4':
  method                          from
  cooks.distance.influence.merMod car 
  influence.merMod                car 
  dfbeta.influence.merMod         car 
  dfbetas.influence.merMod        car 
Parallel analysis suggests that the number of factors =  1  and the number of components =  1 
$parallel
Call: fa.parallel(x = dat[, items])
Parallel analysis suggests that the number of factors =  1  and the number of components =  1 

 Eigen Values of 
  Original factors Resampled data Simulated data Original components
1             3.29           1.14           1.23                3.72
  Resampled components Simulated components
1                 1.72                 1.75

$vss

Very Simple Structure
Call: vss(x = dat[, items], rotate = rotate)
VSS complexity 1 achieves a maximimum of 0.83  with  1  factors
VSS complexity 2 achieves a maximimum of 0.83  with  2  factors

The Velicer MAP achieves a minimum of NA  with  1  factors 
BIC achieves a minimum of  NA  with  2  factors
Sample Size adjusted BIC achieves a minimum of  NA  with  3  factors

Statistics by number of factors 
  vss1 vss2   map dof   chisq  prob sqresid  fit RMSEA   BIC SABIC complex
1 0.83 0.00 0.093  14 2.6e+01 0.024     2.8 0.83  0.17 -21.4  22.2     1.0
2 0.70 0.83 0.119   8 5.7e+00 0.684     2.8 0.83  0.00 -21.5   3.4     1.3
3 0.58 0.81 0.157   3 2.9e+00 0.408     2.7 0.83  0.00  -7.3   2.0     1.6
4 0.43 0.54 0.235  -1 1.1e-01    NA     5.7 0.65    NA    NA    NA     1.6
5 0.41 0.53 0.426  -4 9.9e-11    NA     5.0 0.70    NA    NA    NA     1.9
6 0.36 0.44 1.000  -6 0.0e+00    NA     6.9 0.58    NA    NA    NA     1.8
7 0.36 0.44    NA  -7 0.0e+00    NA     6.9 0.58    NA    NA    NA     1.8
   eChisq    SRMR eCRMS  eBIC
1 1.5e+01 1.1e-01 0.131 -33.1
2 2.4e+00 4.3e-02 0.070 -24.8
3 5.2e-01 2.0e-02 0.054  -9.7
4 1.9e-02 3.9e-03    NA    NA
5 1.2e-11 9.7e-08    NA    NA
6 4.6e-17 1.9e-10    NA    NA
7 4.6e-17 1.9e-10    NA    NA

Warning messages:
1: In readChild(ch) : unable to terminate child process: Permission denied
2: In readChild(ch) : unable to terminate child process: Permission denied
3: In cleanup(mc.cleanup) : unable to terminate child: Permission denied
4: In cleanup(mc.cleanup) : unable to terminate child: Permission denied
5: In GPFoblq(L, Tmat = Tmat, normalize = normalize, eps = eps, maxit = maxit,  :
  convergence not obtained in GPFoblq. 1000 iterations used.
6: In GPFoblq(L, Tmat = Tmat, normalize = normalize, eps = eps, maxit = maxit,  :
  convergence not obtained in GPFoblq. 1000 iterations used.
7: In GPFoblq(L, Tmat = Tmat, normalize = normalize, eps = eps, maxit = maxit,  :
  convergence not obtained in GPFoblq. 1000 iterations used.
Error while shutting down parallel: unable to terminate some child processes
sh: 1: rm: Permission denied
Warning messages:
1: In cleanup(kill = tools::SIGKILL, detach = TRUE, shutdown = TRUE) :
  unable to terminate child: Permission denied
2: In cleanup(kill = tools::SIGKILL, detach = TRUE, shutdown = TRUE) :
  unable to terminate child: Permission denied

userfriendlyscience documentation built on May 2, 2019, 1:09 p.m.