Announcement

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

  • Adding confidence intervals in two-way graph using logit regression

    Hello, I am attempting to add confidence intervals to a two-way graph involving three separate regression lines, but I'm getting an error message (r198, option ci not allowed). I've copied my stata script below for reference. Any advice on where I'm going wrong would be very much appreciated.

    Thanks in advance!

    Chelsea


    . logit y x1 x2 x3 x4 x5 x6 x7 x8 x9 x10, r cluster(cid)

    . prgen x3, from (0) to (10) gap(.25) x(x1=0 x2=0 x4=6.39 x5=2.34 x6=0.683 x7=0 x8=4.08 x9=6.11 x10=1) gen(ps0)

    . prgen x3, from (0) to (10) gap(.25) x(x1=1 x2=0 x4=6.39 x5=2.34 x6=0.683 x7=0 x8=4.08 x9=6.11 x10=1) gen(x1yes)

    . prgen x3, from (0) to (10) gap(.25) x(x1=0 x2=1 x4=6.39 x5=2.34 x6=0.683 x7=0 x8=4.08 x9=6.11 x10=1) gen(x2yes)

    . set text 125

    . label var ps0p1 "None"

    . label var x1yesp1 "X1"

    . label var x2yesp1 "X2"

    . graph twoway line ps0p1 x1yesp1 x2yesp1 ps0x, ci scheme(s2mono) ylabel(,nogrid) xtitle("Military Size") ytitle("Predicated Probability")
    option ci not allowed
    r(198);
Working...
X