ifa.init.random {ifa} | R Documentation |
A function to initialize the IFA parameters to random values.
ifa.init.random(y,L)
y |
The data to be fitted |
L |
The number of factors |
A list containing 2 initialized parameters:
H |
The factor loading matrix |
psi |
The noise diagonal variance matrix |
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)