I'm trying to analyze data from a national survey. I need to stratify it by weight, stratum and psu. I'm using Stata 14. The variables are named "weight" "stratum" and "psu".

I used:
svyset psu[pweight = weight], strata(strata)
but got a "type mismatch" error.

I destringed the variable and now get "option not allowed."

Any help would be appreciated.