Announcement

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

  • Error while setting graph scheme as 538 or 538w in stata 17

    ssc install g538schemes, replace all

    set scheme 538, permanently

    Dr. Bischof's publicly provided scheme 538 is giving me error on stata 17. Can anyone tell me how I can fix it ? Other schemes like: plottig and plot plain work fine but scheme 538 or 538w setting up gives me error.

    Code:
    set scheme 538, permanently
    538 invalid name

  • #2
    Names in Stata can't start with numbers. If this worked before, that was a loophole. I suspect that you need to rename all your files to prefix 538 with say g

    Comment


    • #3
      Mr Cox,

      Much obliged for your thoughtful suggestion. However, from my limited perspective I do feel it has something to do with stata 17 not being fit to this g538scheme being dependent on platform/archetecture. Though, I'm following someone else's code who uses MacBook with stata 15. That person successfully installed everything with the following code

      Code:
      ssc install g538schemes, replace all
      set scheme 538w, permanently
      But, my MacBook with stata 17 with the same command returning an error in case of set scheme 538 or set scheme 538w.

      Here is a relevant post where other people were going through the same issue as I'm going through now. However, I haven't figured out how to get around the problem. set scheme plottig and plot plain work but not set scheme 538 or set scheme 538w .

      https://www.statalist.org/forums/for...ng-in-stata-15

      The command creator Dr. Bischof said something in his recent blog , but in my scenario I don't think it's relevant.

      https://www.danbischof.com/assets/pd...emes_howto.pdf

      Comment


      • #4
        I can't add much to my previous except to confirm that I got the same error message in Stata 17 (Windows).

        I don't use user-written schemes myself except rarely. I tend to use s1color as a starting point. I agree with everyone who wrote a scheme that I don't like s2color. I disagree with everyone who wrote a scheme insofar as I have not liked any other scheme enough to adopt it. That doesn't answer your question except as underlining that someone else is needed to give a better answer.

        Comment


        • #5
          Thanks so much for this valuable intake on this issue and graciously taking the time to test it personally. Much obliged for your consideration and time! I believe that's the best answer I have had so far , and now I can move onto the workaround of the existing issue as you kindly suggested!

          Comment


          • #6
            Daniel Bischof (marking here for the author's attention)

            There does seem to be some form of internal inconsistency / bug here.

            I can confirm that as #1 and #4 noted, I get an error 538 invalid name / 538w invalid name / 538bw invalid name when I try to set scheme to these.

            On the other hand, if I use the scheme(538) / scheme(538w) / scheme(538bw) option directly in a graphing command, there is no error and it works fine. I can also select these schemes via the Preferences > Windows > Graph dialog box.

            Perhaps OP can use one of these methods for now?

            I observe this behaviour on both Stata 17/MP for Mac and Stata 16/MP for Mac.
            Last edited by Hemanshu Kumar; 02 Oct 2022, 19:54.

            Comment


            • #7
              That worked great, Mr Kumar! I appreciate your kind and thoughtful feedback. Much obliged!

              Comment

              Working...
              X