Just read your email about mixreg. The problem is the assignment
y <- as.matrix(LRINTER)
The y argument has to be a ***vector***, not a matrix. Deep in the
bowels of mixreg, yhat is formed as a matrix of fitted values for all
of the models in the mixture. (The first column of yhat con
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),
l