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
How to compare prognostic models with a survivaldecision curve analysis for survival outcomes?Hello, i am currently using the dca (stdca) command in stata 14.0 I research a dataset of patients w…
Sample selection in the control function approachI am trying to understand what sample it is correct to use when estimating the models using the cont…
Subpop MLM: Xtmixed Hi all, I am running a multi-level modeling using complex survey data, which used a stratified, clu…
Exporting underlying data behind stata generated graphsHi, i was able to export the underlying data behind a graph i created using a dataset (below) but wh…
Replace missing observations in VAR1 with observations from VAR2 fDear forum, I am trying to replace the missing observation(s) in ExportMarkets with the value in Mi…
Subscribe to:
Post Comments (Atom)
0 Response to "Invalid psu variable name" error with mi svyset prefix
Post a Comment