Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Sum of different observations in string variabel?

    I have registered drugs people use and I wonder of I easily can get a sum of how many different drugs there is...too many to count by hand.... the tabulate command only give the totalt sum of observations...

  • Nick Cox
    replied
    See if https://www.statalist.org/forums/for...on-2-variables (AND the paper it cites) answers your question, If not, please post an example with realistic data. For example are your data like


    Code:
    "NJC"  "Wine Gin Coffee Chocolate"
    or like

    Code:
    "NJC" "Wine" 
    "NJC" "Gin"

    Leave a comment:

Working...
X