Announcement

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

  • graph oneway?


    I am constructing some nomagrams, so I need to graph what are are essentially number lines (with aligned scales). I can imagine constructing some fake y data and then using graph twoway with no marker, but this seems like a lot of effort for what should be a standard graph type - is it?

    thanks,
    Jeph

  • #2
    have you tried the user-written nomolog (from SJ)? if this does not do what you want, please clarify what else you are looking for

    Comment


    • #3

      -nomolog- is for logistic models; I have survival models which I am using to generate risk profiles at various time points (eg, 1 year, 5 year, etc). So I've done all the hard work already, and produced the scaled values for each risk factor. Now I just want to graph these as ticked x-axes that line up - it's just a graphing problem.

      In short, I am looking for a way to graph number lines. I am not sure how better to clarify it - I have several variables x1, x2, ..., xn, and I need to draw the range of each, with labels on particular values, and I need them stacked up so their scales align.

      Here is an example of the type of figure: http://jnci.oxfordjournals.org/conte...expansion.html

      Frank Harrell wrote an R package, -rms-, which is what these authors used, but it'd be a nontrivial job to set up the models in R (including imputation) so I'd really like to draw these in Stata.


      thanks,
      Jeph
      Last edited by Jeph Herrin; 19 Apr 2016, 07:15.

      Comment


      • #4
        Followup: I worked out a somewhat tedious solution using -xtline-, based on a similar use by the -nomogram- package.

        cheers,
        Jeph

        Comment

        Working...
        X