Hello,
I am fairly new to stata and am just beginning to analyse some secondary data. I am setting up the sampling design using:
svyset SPTN00 [pwt=FOVWT2], strata(PTTYPE2) fpc(NH2)
pweight: FOVWT2
VCE: linearized
Single unit: missing
Strata 1: PTTYPE2
SU 1: SPTN00
FPC 1: NH2
noi svydes
Survey: Describing stage 1 sampling units
pweight: FOVWT2
VCE: linearized
Single unit: missing
Strata 1: PTTYPE2
SU 1: SPTN00
However, the following error message is being shown:
SPTN00 [pwt=FOVWT2] invalid psu variable name
Any suggestions as to why this might be happening would be really helpful.
Thanks.
I am fairly new to stata and am just beginning to analyse some secondary data. I am setting up the sampling design using:
svyset SPTN00 [pwt=FOVWT2], strata(PTTYPE2) fpc(NH2)
pweight: FOVWT2
VCE: linearized
Single unit: missing
Strata 1: PTTYPE2
SU 1: SPTN00
FPC 1: NH2
noi svydes
Survey: Describing stage 1 sampling units
pweight: FOVWT2
VCE: linearized
Single unit: missing
Strata 1: PTTYPE2
SU 1: SPTN00
However, the following error message is being shown:
SPTN00 [pwt=FOVWT2] invalid psu variable name
Any suggestions as to why this might be happening would be really helpful.
Thanks.
Comment