error in multiple membership models
Posted: Thu Sep 13, 2012 5:45 am
Hi.
I am estimating a multiple-membership multinomial model (3 categories for the response outcome) using a data with 23712 person-year records. If a person is in cohabiting relationship, I am implicitly assuming that his / her random effect is a weighted function of each partner's random effect. However, I keep on getting an error message that reads, "The 23713th MM unit for obs 1 is absent but has positive weight." I have already double-checked the data and all MM units are present. In addition, I also find the error message weird considering that I am working on a data with only 23712 person=year records.
Moreover, I have successfully estimated a multiple-membership logistic model using the same data, without any problem.
I am attaching a screenshot of the mlwin data viewer for reference.
Thanks a lot.
sort pid wave_obs
capture noisily runmlwin Yhousetenure3_b Xsingle Xcouple ${x_all} if units_included_foranalysis == 1 & subsampled == 1, level2(pid: cons, mmids(pid pid_mem2) mmweights(weight_mem1 weight_mem2)) ///
level1(wave_obs:) mcmc(burnin(1000) chain(20000)) initsprevious discrete(distribution(multinomial) link(mlogit) denominator(cons) basecategory(0)) nopause mlwinpath(C:\Program Files\MLwiN v2.25\mlwin.exe)
I am estimating a multiple-membership multinomial model (3 categories for the response outcome) using a data with 23712 person-year records. If a person is in cohabiting relationship, I am implicitly assuming that his / her random effect is a weighted function of each partner's random effect. However, I keep on getting an error message that reads, "The 23713th MM unit for obs 1 is absent but has positive weight." I have already double-checked the data and all MM units are present. In addition, I also find the error message weird considering that I am working on a data with only 23712 person=year records.
Moreover, I have successfully estimated a multiple-membership logistic model using the same data, without any problem.
I am attaching a screenshot of the mlwin data viewer for reference.
Thanks a lot.
sort pid wave_obs
capture noisily runmlwin Yhousetenure3_b Xsingle Xcouple ${x_all} if units_included_foranalysis == 1 & subsampled == 1, level2(pid: cons, mmids(pid pid_mem2) mmweights(weight_mem1 weight_mem2)) ///
level1(wave_obs:) mcmc(burnin(1000) chain(20000)) initsprevious discrete(distribution(multinomial) link(mlogit) denominator(cons) basecategory(0)) nopause mlwinpath(C:\Program Files\MLwiN v2.25\mlwin.exe)