Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

[R] A warning message when using mix package.

Li, Jia

2005-07-19


Dear all,

I just start using package mix in R and am inexperienced with it. When I
ran my program several times, I sometimes got the warning message, and
sometimes not :

Warning message:

Loglik converged before variable 2 ; beta may be infinite. in: fitter(X,
Y, strats, offset, init, control, weights = weights,

I cannot find what is wrong with my program. Does anyone have an idea
with it and whether this would affect my results? Any help would be
appreciated.

Thanks!

By the way, I copy a part of my program and hope it would help,

beta <- c(0, 0,0,0,0) # 'True' coefficients

#------------make a matrix of covariates-----------------------#

Y=cbind(z4,z5,z1,z2,z3)

s<-prelim.mix(Y,2)

#----------------------------run MI------------------------------#

MI<-vector("list",10)

fit.model.mi<-vector("list",10)

rngseed(1234567) # set random number generator seed

for (i in 1:10){

thetahat <- em.mix(s)

newtheta <- da.mix(s, thetahat, steps=2000, showits=TRUE)

MI[[i]] <- imp.mix(s, newtheta)

}


 [[alternative HTML version deleted]]

______________________________________________
R-help@(protected)
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
©2008 r-help.com - Jax Systems, LLC, U.S.A.