Hi, I am getting an error when attempted to svyset data and run a logistic regression after multiple imputation. I ran 20 multiple imputations. Then, I svyset the data as a whole. Then, when trying to run a logistic regression with the prefix "mi svyset," the error arises "invalid psu variable name r(111);". Output is below. I am confused because I was not aware I need to enter the psu when running the logistic regression command; I was under the impression I only needed to enter "mi svyset" as a prefix. I tried entering the psu as part of the prefix, but that also gave me the same error message.
Thank you in advance!
mi svyset c5varunit [pweight=w5cgfinwgt0], strata(c5varstrat)
pweight: w5cgfinwgt0
VCE: linearized
Single unit: missing
Strata 1: c5varstrat
SU 1: c5varunit
FPC 1: <zero>
mi svyset logistic cac5diffinc chi5medicare edudummy martstatdummy che5health c5dgender chd5age cdc5hlphrsdy hispdummy crl5dyourrace5 crl5dyourrace4 crl5dyourrace3 crl5dyourrace2 crl5dyourrace1
logistic cac5diffinc chi5medicare edudummy martstatdummy che5health c5dgender chd5age cdc5hlphrsdy
hispdummy crl5dyourrace5 crl5dyourrace4 crl5dyourrace3 crl5dyourrace2 crl5dyourrace1 invalid psu
variable name
r(111);
Related Posts with "Invalid psu variable name" error with mi svyset prefix
Merging two panel datasetsHello everyone, I have searched the forum but did not manage to find help for my problem. Im new to …
Help needed to fix GMM iteration problemI am trying to write a wrapper using GMM. When I do it manually, it converges very fast and provides…
Margins for Interaction TermI have run the following regression and am trying to analyse whether the initial level of Income of …
Mata question on garbled codes in Chinese characters output by PdfDocument()Dear Listers: I am using PdfDocument() in Stata 14.0 to creat a table with contents in Chinese. Alth…
Why all observations are "on support" on propensity score matching?Hi I'm doing propensity score matching for reducing selection bias in observational study. There wa…
Subscribe to:
Post Comments (Atom)
0 Response to "Invalid psu variable name" error with mi svyset prefix
Post a Comment