Dear Statalist,

I would like to calculate 'relative entropy' (also known as Kullback-Leibler Divergence) for categorical outcome variables. I was wondering if there is a built-in or user-written command for this.

I am grateful for any advice.

Best regards,
Savas