title: Topic proportion of different variables other than documents
body: <p>I'm running a stm in reddit data. I've categorized the reddit posts into different hate speech like anti-asian, anti-black etc. i want to calculate the probability of given hate speech being a particular topic.</p>
  <p>for instance, i want results to be like : 30% of topic 1 is anti-asian and 70% of topic 1 is anti-black and this continues for all the numbers of topics i have.</p>
  <p>Also, i want another table with the results like anti-asian is 5% of all the topics i have, and 95% of topics are anti-black.</p>
  <pre><code>posts &lt;- c(&quot;i dislike asian&quot;, &quot;i dislike black&quot;)
  anti-asian &lt;- TRUE, FALSE
  anti_black &lt;- FAlSE, TRUE
  </code></pre>