Analyzing incorrect worked examples is especially beneficial for helping students develop a conceptual understanding of mathematical processes. Studying their own errors can also help students see when they have chosen incorrect strategies, improving their procedural knowledge. More importantly, error analysis can also help students identify their misconceptions and support them in correcting their understandings.
See how this teacher uses error analysis with algebraic equations. He provides many incorrect worked examples that teachers can use with their students to develop their Algebraic Thinking.