fa.init {asreml}R Documentation

Factor analytic initial values

Description

Obtains initial parameter values for factor analytic models from the observed variance-covariance matrix.

Usage

fa.init(data, model, scale = 1, core_version = NULL)

Arguments

data

A data frame containing the response and the base factors in the factor analytic (compound) model term.

model

A two-sided formula with the response on the left and a first order interaction with a factor analytic model term on the right. Valid factor analytic model functions are "sfa", "facv", "fa" or "rr" with an optional argument k specifying the order of the factor analytic model.

scale

Scales the variance-covariance matrix prior to calculating the parameter estimates (default = 1.0).

core_version

The version of the algorithmic core to use, not usually required.

Value

A numeric vector of specific variances followed by the loadings if the factor analytic function is "fa" or "rr", otherwise a numeric vector of loadings followed by the specific variances.

Examples


## Not run: 
init <- fa.init(data, fa(site,2):variety)

## End(Not run)


[Package asreml version 4.2.0.480 Index]