Announcement

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

  • Restricted cubic spline from stcox overlaid onto histogram

    I am attempting to create a graph that combines a restricted cubic spline from a multivariable adjusted cox model (using mkspline) with a histogram. An example figure of what I would like to create is here (figure 3): http://www.journals.plos.org/plosone...l.pone.0055113. Might anyone have any ideas how this could be possible in Stata 15?

  • #2
    Possibly this is what you are looking for:
    Code:
    net describe xbrcspline, from(http://fmwww.bc.edu/RePEc/bocode/x)
    http://publicationslist.org/eric.melse

    Comment


    • #3
      Hi, I tried the
      "net describe xbrcspline, from(http://fmwww.bc.edu/RePEc/bocode/x)" but it did not provide the graph that I wanted (below). I want to overlay a histogram in the cubic spine (example, http://www.onlinejacc.org/content/ac...600&carousel=1) . Your suggestion will be highly appreciated.
      Attached Files

      Comment


      • #4
        Dear Shiva,

        Did you make the spline in #3 yourself?
        In any case, unless you provide some data to work with it is about impossible to give an answer to your request (by anyone on the forum).

        Please read topic 12.2 What to say about your data on the FAQ page of this forum.

        Best,
        Eric
        http://publicationslist.org/eric.melse

        Comment

        Working...
        X