Announcement

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

  • splinefits

    Can you put two splinefits on the same graph?

  • #2
    your question is not completely clear but the answer is almost certainly "yes"; however, you provide no detail about anything so specific help cannot given; please read the FAQ and follow the advice in there

    Comment


    • #3
      I guess this refers to splinefit from SSC. My impression from the help file is No, but there is extra material on GitHub and it would be a good idea to get feedback from Asjad Naqvi, the command author. Asjad is a member here, but he requests interaction on GitHub.

      Comment


      • #4
        Thanks again for tagging Nick Cox! Somehow Stata users are averse to GitHub...


        Matt Piercy: "splinefit" has been superceded by "catspline": https://github.com/asjadnaqvi/stata-...ions#catspline which is part of the "graphfunctions" package:
        Code:
        ssc install graphfunctions, replace
        .

        You can use this to generate as many splines as you want. See the help files for details.

        Comment


        • #5
          If the goal is to get a set of smoothed series, I am very positive about local polynomials. which have a great deal of flexibility (pun intended):

          kernel type choice

          kernel width choice

          degree of polynomial choice

          superimposition of different curves

          saving numeric results to variables

          and so forth.

          See e.g. lpoly, twoway lpoly

          Comment


          • #6
            Originally posted by Asjad Naqvi View Post
            Somehow Stata users are averse to GitHub...
            🤔.oO(Or perhaps GitHub users are averse to Statalist?)
            --
            Bruce Weaver
            Email: [email protected]
            Version: Stata/MP 19.5 (Windows)

            Comment


            • #7
              Cool thanks Asjad and Nick - I'll give these a try.

              Comment

              Working...
              X