These functions are used by the Factor Analysis dialog.
menuFactanal
calls
tabSummary.factanal,
tabPlot.factanal and
tabPredict.factanal
if summary, plotting and prediction results are requested.
at least one of
x,
data, or
covlist must be given.
fit
an object of class
factanal.
OPTIONAL ARGUMENTS:
x
a matrix, data frame or formula. If a matrix, the columns should correspond
to variables and the rows to observations. If a formula, no variables may
appear on the left (response) side.
factors
the number of factors to fit.
method
a character string specifying which estimation method to use. The possible
values are
"mle" (maximum likelihood estimate) and
"principal" (principal
factor estimate).
data
a data frame in which to interpret the formula, or a matrix. This is
usually used only when
x is a formula, though it may be used instead of
x.
covlist
a list of the form returned by
cov.wt and
cov.mve. Components must
include
center and
cov.
scores
if
TRUE, and data are given via
x or
data, factor scores will be
returned as a component of the result.
type
a character string specifying the type of factor score to compute. The
possible values are
"regression" and
"weighted.ls".
rotation
a character string giving the name of a rotation to use. See the
rotate
help file for a list of possibilites.
na.action
if
TRUE, then any observation with missing values are removed from the
analysis. If
FALSE and there are missing values then the function will
exit with a message that missing values are not allowed. If
na.action
is
TRUE then
na.action is set to
na.omit in the call to
factanal. If
na.action is
FALSE then
na.action is set to
na.fail in the call
to
factanal.
subset
an expression saying which subset of the rows of the data
should be used in the fit. This can be a logical vector (which is
replicated to have length equal to the number of observations), or
a numeric vector indicating which observation numbers are to be included,
or a character vector of the row names to be included.
start
a matrix of starting values for the maximum likelihood estimation
procedure. See the
factanal.fit.mle help file for details.
iter.max
the maximum number of iterations to perform for the maximum likelihood
estimation procedure. See the
factanal.mle.control help file for details.
unique.tol
the tolerance for the change in uniqueness. If no uniqueness changes
by more than this value from one iteration to the next, convergence is
declared. See the
factanal.mle.control help file for details.
print.short
if
TRUE, a short summary of the factor analysis is printed. This output
is from the function
print.factanal.
print.importance
if
TRUE, the importance of factors is printed. This output is from the
function
summary.factanal.
print.loadings
if
TRUE, the loadings matrix is printed. Elements of the matrix whose
absolute value is smaller than
cutoff.loadings will appear a blanks.
cutoff.loadings
a number giving the cutoff for printing the loadings.
plot.loadings
if
TRUE, a bar plot of the loadings for each factor will be produced.
plot.biplot
if
TRUE, a biplot for the factors specified in
plot.biplot.choices
will be produced.
plot.biplot.choices
a vector of length 2, stating which factors to plot.
predict.p
if
TRUE, predictions will be saved to the data frame specified in
save.name.
newdata
a matrix or data frame to use for computing predictions. It must contain
the same names as those used in the original analysis. If missing, the
predictions for the original data are computed.
save.name
a character string for the name of the data frame to save the predictions
in. If a data frame with this name already exists in database 1 and it
has the appropriate number of rows then the saved values will be appended
to the data frame. If the object already exist in database 1 and it is
not a data frame or it does not have the appropriate number of rows then
a new name is created by appending a number to
save.name and the results
are saved in the data frame with the new name.
VALUE:
an object of class
factanal. See the
factanal.object help file for details.
SIDE EFFECTS:
Plots will be drawn if requested. The object
save.name will be created
or appended to if predictions are saved.