In my dataset, each row is a sale and in my data each sale is a referral or not, captured by the variable "referral." Another variable captures the type of product, called product type. I've been able to plot the number of referrals per product type. And what I'd like to plot is the number of referrals per product type, divided by the total number of sales per product type. How can I best approach this issue?
The code for my current plot is the following:
The code for my current plot is the following:
Code:
graph bar (count), over(product_type)
Comment