Learn R Programming

FAiR (version 0.4-13)

create_FAobject: Class "FA" and Its Constructors

Description

It is not necessary to understand this help page if one merely wants to estimate a factor analysis model. This help page is intended for those who want to modify or extend FAiR or otherwise want some idea of how FAiR works behind the scenes.

The classes that inherit from "FA" encapsulate estimates from factor analysis models. First, the constructor(s) will be discussed.

Usage

## S3 method for class 'restrictions,manifest.basic':
create_FAobject(restrictions, manifest, opt, call, scores, lower, 
                                                        analytic)

Arguments

restrictions
manifest
object of manifest-class
opt
The list produced by genoud
call
the call to Factanal
scores
A character string indicating what kind of factor scores to calculate; see the same argument to Factanal
lower
A small numeric scalar indicating the lower bound for positive definiteness or minimum uniqueness; see the corresponding argument to Factanal.
analytic
A logical indicating whether analytic gradients were used.

Value

  • The methods for create_FAobject produce an object of class "FA" or that inherits from class "FA" as appropriate.

Objects from the Class

Objects can be created by calls of the form new("FA", ...). However, this use of new("FA", ...) is not recommended because both Factanal and Rotate provide constructors for users with the help of the formal methods defined for create_FAobject.

Details

The methods for create_FAobject are called internally right at the end of Factanal. They take the result of the optimization and produce an object that inherits from class "FA", which is conceptually simple, although the implementation is somewhat complicated and relies on a bunch of helper functions that are not exported.

See Also

Factanal

Examples

Run this code
showClass("FA")
showClass("FA.EFA")
showClass("FA.general")
showClass("FA.2ndorder")

Run the code above in your browser using DataLab