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
Probit QuestionHi all, If I have a panel of people from ages 25-30, who I may observe more than once in these ages…
Stata tables to word format by writing matrix commandHi. I am using a dataset that has 3 years. I am using the command tabulate to do analysis. So I am w…
Removing specific observationsHello everyone, Based on my title post it seems the question is repeated but no it’s different. my q…
I use qreg, then margins, then mplotoffset: how do I change the spacing for my y-axis?Hi Stata community, I want to change the spacing for my y-axis. Currently I have 0.5 cm between one…
I need to transpose every row of data, not including the first column, into each corresponding value of the first column.Here is an example of my data: Code: * Example generated by -dataex-. To install: ssc install data…
Subscribe to:
Post Comments (Atom)
0 Response to "Invalid psu variable name" error with mi svyset prefix
Post a Comment