read.cefa: Read and Write Files Produced by or for CEFA

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

Compatability functions between R and Comprehensive Exploratory Factor Analysis (CEFA) Version 2.0 by Michael W. Browne, Robert Cudeck, Krishna Tateneni, and Gerhald Mels.

Usage

1
2
3
4

Arguments

file

Character string giving the path to the file to be imported, possibly "" to print the file to the screen.

FAobject

object of FA-class produced by Factanal under EFA

Details

read.cefa does not support importing a matrix of factor loadings, (Datatype 3 in CEFA) because the file does not include enough information to be useful to FAiR. Instead, import the covariance matrix (Datatype 1 in CEFA) or better the raw dataset (Datatype 2 or 4 in CEFA) and use Factanal to reestimate the model.

In contrast, the only export method that is currently supported is that for preliminary factor loadings in a EFA. read.CEFA is just an alias for read.cefa and similarly for write.CEFA.

These functions have not been tested very much.

Value

If a raw dataset is imported, read.cefa returns a dataframe with columns as variables. Such a dataframe can be passed to the data or x argument of make_manifest. If a covariance matrix is imported, read.cefa returns a two-element list with the following items:

cov

The covariance matrix

n.obs

Number of observations

This list can be passed to the covmat argument of make_manifest. write.cefa does not produce anything but writes a file to the specified location.

Author(s)

Ben Goodrich

References

CEFA is available for Windows (but also runs under Wine in Linux) from http://faculty.psy.ohio-state.edu/browne/software.php

See Also

read.triangular imports a triangular covariance matrix, the foreign library has functions to import files created by SPSS, SAS, etc., read.table imports delimited text files and read.fwf imports fixed-width text files.

Examples

1
2
3
4
5
  ## Not run: 
    OrgComm <- read.cefa(file = file.path("Program Files", "CEFAtool" 
                                          "OrgComm.inp"))
  
## End(Not run)

FAiR documentation built on May 29, 2017, 6:08 p.m.