I'm a total stata newbie and I feel like I'm brain farting on how to do this but I'm trying to combine "Strongly disagree" and "Somewhat disagree" into one singular "Disagree". Any tips? Below is the tabulation of the data.

I've been using
and other variations of it on both the string and numeric versions but I keep getting r(109) type mismatch errors.
I used
on the original string data because I'm trying to run a regression. So I could make changes on the numeric data or the original string data. Thanks in advance!
I've been using
Code:
replace nataccess_factor = "Disagree" if nataccess_factor == "Strongly disagree" | nataccess_factor == "Somewhat disagree"
I used
Code:
encode
Comment