Dear All
I am trying to estimate a mixture of regression and get the
following error using the mixreg package:

Error in y - yhat : non-conformable arrays

The instruction I used were:
x <- as.matrix(LRHUN)
y <- as.matrix(LRINTER)

TS  <- list(list(beta=c(3.0,1.0),sigsq=1,lambda=0.4),
            list(beta=c(0.0,1.0),sigsq=1,lambda=0.6))

prova <- mixreg(x,y, ncomp=2, theta.start=TS)

The data set has about 1200 observations.
I checked out that x and y have the same number of obs.
Also examples work fine.

Any hints on what is going on? Thanks
best regards
M

**********************************************
Massimiliano Marinucci
http://personales.ya.com/max_mar/
Ph.D Candidate in Economics
Fundamentos del Analisis Económico II
(Economía Cuantitativa)
Facultad de CC.EE.
Universidad Complutense Madrid
Campus de Somosaguas
Madrid - Spain
**********************************************


	[[alternative HTML version deleted]]


