restrictions2Mathomatic(object, file = "")
restrictions2mathomatic(object, file = "")restrictions-class or
FA-class.cat, so by default the file
is printed to the screen (and may be wrapped incorrectly).restrictions2mathomatic is just an alias for restrictions2Mathomatic,
which Factanal should automatically avoid the specific problems that
Steiger (2002) is most concerned with.
You have to manually add equations to the system that reflect the constraints
imposed on the model; doing so is trivial at the Mathomatic prompt. However, for a
variety of reasons, actually solving the system of equations in Mathomatic
may involve more work and frustration than one might expect. For example, if you
have more than $n = 14$ manifest variables, then you have to recompile Mathomatic
changing #define N_EQUATIONS} in \code{Mathomatic/am.h} to some number bigger
than $100$ to hold all $0.5 * n * (n - 1)$ equations implied by the factor
analysis model, plus equations for the constraints.
file.Steiger, J. H. (2002) When constraints interact: A caution about reference variables identification constraints, and scale dependencies in structural equation modeling. Psychological Methods, 7, 210--227.
Phi <- diag(2) free <- lower.tri(Phi) Phi <- new("parameter.cormat", x = Phi, free = free, num_free = sum(free)) res <- make_restrictions(manifest = man, beta = beta, Phi = Phi, discrepancy = "MLE")
restrictions2Mathomatic(res, file = "") # file printed to screen