Announcement

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

  • lsens graph marker size

    Hi,

    I'm using lsens after a logit regression and the marker size is way to big. I tried "lsens, msize(vsmall)" which changes the marker size of the sensitivity marker very well, but the specificity keeps unchanged. How can I change it via an option?

    Nick

  • #2
    The source code reveals that both graphs are drawn using

    Code:
    connected x y z
    which will allow changes only to the last graph in order. However, the inputs for the graphs are available via options, so you can use twoway to achieve what you want. Here is an example

    Code:
    webuse lbw, clear
    logit low age i.race
    lsens, genprob(cutoff) gensens(sens) genspec(spec) nograph
    format cutoff sens spec %9.2f
    set scheme s1color
    twoway (connected sens cutoff, sort msize(tiny)) ///
    (connected spec cutoff, sort msize(tiny) ///
    ylabel(0(.25)1, grid) ytitle("Sensitivity/Specificity") ///
    xlabel(0(.25)1, grid) xtitle("Probability cutoff") title(""))

    Click image for larger version

Name:	lsens.png
Views:	1
Size:	32.2 KB
ID:	1459541

    Comment


    • #3
      Working on a different problem, I now realize that in plots with multiple graphs, you need to specify an option several times to affect the rendition of the graphs. Perhaps this should be better explained in the manuals. The workaround in #2 is therefore not needed.

      Code:
      webuse lbw, clear
      logit low age i.race
      lsens, msize(vsmall vsmall)
      Click image for larger version

Name:	lsens.png
Views:	1
Size:	42.4 KB
ID:	1467223

      Comment

      Working...
      X