[R] Trouble with mixreg

From: max.marinucci <max.marinucci_at_ya.com>
Date: Wed 09 Mar 2005 - 23:31:16 EST

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),


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

Massimiliano Marinucci
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]]

R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Mar 09 23:43:06 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:42 EST