I tried to produce sensitivity and specificity by manually through predict using the result of svy:logit. Below is the syntax I wanted to apply.
svy:logit y x1 x2 ... , nolog or allbaselevels
predict prediction, pr
gen byte predicted = (prediction > 0.1) & !missing(prediction)
svy, subpop(if srh2021 == 1): proportion predicted
svy, subpop(if srh2021 == 0): proportion predicted
However, it shows
predict prediction, pr
(999 missing values generated)
thus, missing portion deterred having an expected result. How to cope with those 999 missing values?
svy:logit y x1 x2 ... , nolog or allbaselevels
predict prediction, pr
gen byte predicted = (prediction > 0.1) & !missing(prediction)
svy, subpop(if srh2021 == 1): proportion predicted
svy, subpop(if srh2021 == 0): proportion predicted
However, it shows
predict prediction, pr
(999 missing values generated)
thus, missing portion deterred having an expected result. How to cope with those 999 missing values?

Comment