Hi everyone,
I am analyzing data from a large-scale survey. I used the command mi (sequential imputation using chained equations) to impute the missing values in the dataset.
I am trying to figure out how individual-level factors (e.g., parental education, household income) and neighborhood factors (e.g., grand mean of parental education, urbanicity) affect students’ school drop-out (binary response: 0 for completion, and 1 for drop-out). I also want to include sampling weight (weight) into the model.
I tried to use mi estimate: meqrlogit function to run a two-level model, with individual-level factors and sampling weight included into level 1, and neighborhood-related factors included in level 2.
The code is like below:
mi estimate: meqrlogit Dropout Parent_edu income [pweights = weight] || neighborhoodid: urban Paredu_grand
However, it comes out an error that “weights not allowed”. My question is, how can I include sampling weight into a two-level logistic model of imputed data?
Thank you so much in advance!
Related Posts with Including sampling weight into multilevel logistic model with imputed data
Very different SEs with table vs mean when there are missing values and pweightsStata version: 17 I ran the new table command with the statistic(semean varlist) option. The result…
Long categories labels in graph hbarDear Stata users, I encounter this question when I graph hbar. Value labels of my category variable…
missing values when mergeHi, I have a dataset similar to the following table where I want to calculate the mean values of x1,…
bar graph positionHi Anybody can help me with how to fix the graph position. < graph hbar (mean) group_0 group_1 i…
Headings for coefplot graph but want to exclude ref category for categorical variablesHi all, I am using coefplot to create a graph of ORs for odds of contraceptive discontinuation by me…
Subscribe to:
Post Comments (Atom)
0 Response to Including sampling weight into multilevel logistic model with imputed data
Post a Comment