Hi,

I´m having problems trying to compare models obtained using the mixture model 
fitting function “mix”

 

model1<- mix(data, data.par1,dist="norm")

model2<- mix(data, data.par2,dist="norm")

 

anova(model1, model2)

 

When the number of parameters estimated for the two models is different I get 
an error message: 

“Error in anova.mix(model1, model2) : 

 binary operation on non-conformable arrays”

 

When both models have the same number of parameters estimated I get a warning 
saying that the models should be nested:

“Warning message:

In anova.mix(model1, model2) : The models are not nested”

 



I wonder if anyone can help

Thanks in advance

Maria



-------------------------------------------- 

Maria Manuel Angélico 
IPMA, Portuguese Institute for Sea and Atmosphere
Lisboa , Portugal 
tel: ++ 351 213027068 
angel...@ipimar.pt

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to