I am thinking of this in terms of being a role model.
Isn't it the case you can be a great role model and your children still choose a totally different path to you? I'm nothing like either of my parents, and it confuses me when people say 'you need to do X to set an example to your children.'
Obviously you try to guide them but is it really so bad to admit to them you made mistakes?