Announcement

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

  • Patterns for variable in stata

    Hi, I have a dataset with a firm name variable, a year variable ( 2008-2018) and a product variable. I want to look at the pattern of observations to understand firm-good-destination combinations eg. how many firms exported good X to Country Y in 2008. An analysis similar to this below :
    Click image for larger version

Name:	IMG_4982.jpg
Views:	1
Size:	1.81 MB
ID:	1490592

  • #2
    I think you may may find the following starts you in a useful direction, in that the table command can probably provide what you want, but that depends very much on what your data is like, and without a sample of your data this code is of course untested.
    Code:
    table good year, by(country) contents(freq)

    Comment

    Working...
    X