I have a variable called DocVisit that records the number of times a respondent visits a clinic. It takes the value of: 1, 2, 3, 4, 5, 6, 7, 8, 9 10,

I want to create a new variable that records the number of times a respondent visits a doctor:
-- less than 5 times per month (DocVisit=1
-- more than 5 month(DocVisit=2)
-- sometimes less than 5x month, sometimes more than 5x per month (DocVisit=3)

I am using this syntax, but it is giving me only two values:

Code:
gen DocVisit_3=.
replace DocVisit_3=1 if DocVisit<=5
replace DocVisit_3=2 if Docvisot>=5
replace DocVisit_3=3 if inlist(DocVisit, 1,2,3,4,6,7,8,9,10)
fre DocVisit_3

I will appreciate some assistance with this. Thansk cY