Re: [Rd] coxph function (Survival Library) (PR#12638)

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Fri, 29 Aug 2008 23:06:09 +0200

ana.marcos_at_uam.es wrote:
> Hi,
>
> I am pretty sure that the results of Likelihood ratio test are bigger
> than the real value. They are multiplied for the factor Ln(10), in this
> way the p-values are smaller than what they should be.
> The reason is that you apply the formula -2*log(exp(L(0)/exp(L(B)) and
> not what it should be -2*log(L(0)/L(B)).
>
> Please if I am not right, tell me
>

I don't think you are and please don't use the bug report system when you are not sure.

Notice that the conventions for the default base in "log" differ between countries (and even between education levels with countries). There's no indication that base 10 logs are used anywhere, so where would a factor of ln(10) creep in?

-- 
   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 Fri 29 Aug 2008 - 21:07:27 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 Sat 30 Aug 2008 - 14:38:17 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