Would you say the comma in your sentence might be unnecessary since the subordinate clause "as you have in your example" is kind of essential to the overall meaning of the sentence; the writer gave two choices and you kindly chose one to answer the question.
If there were no choices or the choices were not part of the answers, then a comma would serve well but as it seems th
"as you have in your example" is a dependent clause, so it should be separated from the main clause with a comma. It's not really necessary to the sentence. Also, if you moved it to the front, so it was "Yes, as you have in your example, ..." you would also separate with with a comma.