Re: [Rd] Wrong behavior of lines.survfit for conf.int="only" (PR#13180)

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Mon, 20 Oct 2008 18:32:51 +0200

diggsb_at_ohsu.edu wrote:
> SSBkb3dubG9hZGVkIHRoZSBzb3VyY2UgZm9yIHN1cnZpdmFsIGFuZCBJIHRoaW5rIEkgZm91bmQg
> dGhlIGJ1Zy4gIEkgaGF2ZSBub3QgdHJpZWQgdG8gYnVpbGQgdGhlIHBhY2thZ2Ugd2l0aCB0aGlz
> IGNoYW5nZSB0byB0ZXN0IGl0LCBidXQganVzdCBkZWZpbmluZyB0aGUgZnVuY3Rpb24gd2l0aCB0
> aGlzIGNoYW5nZSBzZWVtcyB0byB3b3JrLg0KDQpUaGUgY29kZQ0KDQoJaWYgKGNvbmYuaW50PT0n
> b25seScpIHsNCgkgICAgY29uZi5pbnQgPC0gVFJVRQ0KCSAgICBwbG90LnN1cnY8LSBUUlVFDQoJ
> ICAgIH0NCg0KU2hvdWxkIGJlDQoNCglpZiAoY29uZi5pbnQ9PSdvbmx5Jykgew0KCSAgICBjb25m
> LmludCA8LSBUUlVFDQoJICAgIHBsb3Quc3VydjwtIEZBTFNFDQoJICAgIH0NCg0KLS1CcmlhbiBE
> aWdncw0KDQo=
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

Argh! Jitterbug...must...die...

[pd_at_titmouse2]$ base64 -d
SSBkb3dubG9hZGVkIHRoZSBzb3VyY2UgZm9yIHN1cnZpdmFsIGFuZCBJIHRoaW5rIEkgZm91bmQg ....
aWdncw0KDQo=

I downloaded the source for survival and I think I found the bug. I have not tried to build the package with this change to test it, but just defining the function with this change seems to work.

The code

	if (conf.int=='only') {
	    conf.int <- TRUE
	    plot.surv<- TRUE
	    }

Should be

	if (conf.int=='only') {
	    conf.int <- TRUE
	    plot.surv<- FALSE
	    }

--Brian Diggs

-- 
    O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
   c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
  (*) \(*) -- University of Copenhagen   Denmark      Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard_at_biostat.ku.dk)              FAX: (+45) 35327907

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Mon 20 Oct 2008 - 16:38:44 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 20 Oct 2008 - 18:30:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive