Announcement

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

  • Stata Question

    How can this be done on Stata? Using Stata, create a summary table for the variable “studio”, listing the frequency and the percent of the movies in each studio. Now create a bar graph showing the percentage of each studio with the bar height labeled. Make sure you put an appropriate title on the graph.

  • #2
    That sounds like a homework question. We don't answer those. The point of such homework is that you puzzle till you find the answer. That is how you learn. If you need hints you need to talk to your instructor.
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment


    • #3
      Sorry, couldn't resist.
      Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	44.0 KB
ID:	1726494

      Comment


      • #4
        Originally posted by Paul Dickman View Post
        Sorry, couldn't resist.
        [ATTACH=CONFIG]n1726494[/ATTACH]
        😳 That approach looks awfully off. What is the reason of posting it?
        Last edited by Ken Chui; 08 Sep 2023, 12:43.

        Comment


        • #5
          I guess that Paul Dickman is making a point about what not to do.

          Code:
          tabulate studio, gen(summary)
          should work, but

          Code:
          egen percent = total(summary) / _N * 100
          is wrong: it's going to trigger error messages for at least two different reasons. It is wrong even in spirit.

          Otherwise, I agree with Maarten Buis that this looks like an assignment.

          Comment

          Working...
          X