I keep running into variations of the following error:
estimation sample varies between m=1 and m=21; click here for details
no results will be saved
r(459);
I have tried the following different codes, all of which seem to return the error:
mi estimate: svy linearized: melogit fully i.income1 || course:
mi estimate: svy linearized: melogit success i.fully##i.income1 || course:
mi estimate: svy linearized: melogit success i.income1 || course: if fully==1
The following model does not return this error:
mi estimate: svy linearized: melogit success i.income1 || course: if fully==0
The variables full and course are regular with no missing values. The variable income1 is imputed. I have this same problem with another imputed independent variable as well, but not with any of the other independent variables. I have read the text in the "click here for details" part of Stata (see below), but since my data are set to wide, I'm not sure how to proceed to diagnose the problem. I don't see how the issue could be the first option that this error mentions (see below), since fully is a regular variable and is not imputed--it does not vary across imputations. I have to admit that I don't really understand issues 2 and 3 listed below, and googling them for the last two days hasn't gotten me anywhere. I was hoping someone here might be able to help point me towards a way to diagnose the problem?
Estimation sample varies across imputations
There is something about the specified model that causes the estimation
sample to be different between imputations. Here are several situations
when this can happen:
1. You are fitting a model on a subsample that changes from one
imputation to another. For example, you specified the if expression
containing imputed variables.
2. Variables used by model-specific estimators contain values varying
across imputations. This results in different sets of observations
being used for completed-data analysis.
3. Variables used in the model (specified directly or used indirectly by
the estimator) contain missing values in sets of observations that
vary among imputations. Verify that your mi data are proper and, if
necessary, use mi update to update them.
A varying estimation sample can lead to biased or less efficient
estimates. We recommend that you evaluate the differences in records
leading to a varying estimation sample before continuing your analysis.
To identify the sets of observations varying across imputations, you can
specify the esampvaryok option and save the estimation sample as an extra
variable in your data (in the flong or flongsep styles only) by using mi
estimate's esample() option.
estimation sample varies between m=1 and m=21; click here for details
no results will be saved
r(459);
I have tried the following different codes, all of which seem to return the error:
mi estimate: svy linearized: melogit fully i.income1 || course:
mi estimate: svy linearized: melogit success i.fully##i.income1 || course:
mi estimate: svy linearized: melogit success i.income1 || course: if fully==1
The following model does not return this error:
mi estimate: svy linearized: melogit success i.income1 || course: if fully==0
The variables full and course are regular with no missing values. The variable income1 is imputed. I have this same problem with another imputed independent variable as well, but not with any of the other independent variables. I have read the text in the "click here for details" part of Stata (see below), but since my data are set to wide, I'm not sure how to proceed to diagnose the problem. I don't see how the issue could be the first option that this error mentions (see below), since fully is a regular variable and is not imputed--it does not vary across imputations. I have to admit that I don't really understand issues 2 and 3 listed below, and googling them for the last two days hasn't gotten me anywhere. I was hoping someone here might be able to help point me towards a way to diagnose the problem?
Estimation sample varies across imputations
There is something about the specified model that causes the estimation
sample to be different between imputations. Here are several situations
when this can happen:
1. You are fitting a model on a subsample that changes from one
imputation to another. For example, you specified the if expression
containing imputed variables.
2. Variables used by model-specific estimators contain values varying
across imputations. This results in different sets of observations
being used for completed-data analysis.
3. Variables used in the model (specified directly or used indirectly by
the estimator) contain missing values in sets of observations that
vary among imputations. Verify that your mi data are proper and, if
necessary, use mi update to update them.
A varying estimation sample can lead to biased or less efficient
estimates. We recommend that you evaluate the differences in records
leading to a varying estimation sample before continuing your analysis.
To identify the sets of observations varying across imputations, you can
specify the esampvaryok option and save the estimation sample as an extra
variable in your data (in the flong or flongsep styles only) by using mi
estimate's esample() option.
Comment