fa.init {asreml}R Documentation

Factor analytic initial values

Description

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

Usage

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

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. Other model functions are not allowed.

scale

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

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.1.0.106 Index]