Hi the list. Is there a bug in mmlcr package ? The following code does not compile: mmlcrTest <- function(dataW){ dataL <- reshape(dataW,idvar="id",timevar="T",varying=list(paste("T",0:10,sep="")),direction="long",v.names="score") resultR <- mmlcr(outer= ~ 1 | id, components = list(list(formula = formul,class= "normlong")), n.groups=3, data=dataL, max.iter=500 ) plot(resultR) } mmlcrTest(dataW) The error is (translate from french): "Error in inherits(x, "data.frame") : objet "dataL" not find" It seems that mmlcr does not look for the data at the right place since it did find dataL if we set it a a global variable but it does not find it if we define it in a function. Christophe