Announcement

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

  • problems creating a graph, diagram, etc.

    Hello,
    Creating a graph, a diagram etc. doesn't work in my Stata program. The small box, that usually shows the graph opens, but then it says " drawn_margin.set2gm: class type not found".
    Can someone help me with that?
    Thank you

  • #2
    I think we need to see what command you typed and ideally a data example too.

    Comment


    • #3
      For example I used the command: "graph bar, over (v43)" or "hist age"

      My Data set is from the ISSP 2018 Germany: https://search.gesis.org/research_data/ZA7570

      Comment


      • #4
        I can't see any reason why either command would produce the error message you showed. Still true that we need see more details to comment usefully. The only wild explanation I can offer is that your Stata installation was messed up.

        Comment


        • #5
          I get the exact same error. The command I typed is

          twoway (line stock_country year if country=="FR", sort)

          I use data from the IFR and generated the variable stock_country summing the operationalstock by country and year

          Comment


          • #6
            A simple diagnostic: Can Anja or Leonie produce their same errors on a simple and publicly available data set, e.g.,
            Code:
            sysuse auto
            graph bar rep78, over(foreign)
            hist weight
            If these produce errors, I'd suspect per Nick's comment that your Stata installations are corrupted.

            Comment

            Working...
            X