Learn R Programming

ifa (version 7.0)

ifa.init.random: A function to randomly inizialize the IFA parameters

Description

A function to initialize the IFA parameters to random values.

Usage

ifa.init.random(y,L)

Arguments

y
The data to be fitted
L
The number of factors

Value

H
The factor loading matrix
psi
The noise diagonal variance matrix

See Also

ifa.init.pca

Examples

Run this code
data(memory)
init.values<-ifa.init.random(memory$x,2)
fit<-ifa.em(memory$x,c(2,2),it=50,eps=0.0001,init.values)

Run the code above in your browser using DataLab