Re: [R] likelihood from test result

2008-01-10 Thread Matthias Kohl
Dear David, no, distrTEst won't help. It has a different intention. We are currently working on a new package "distrMod" (cf. https://r-forge.r-project.org/projects/distrmod/) which sometime might have such a functionality. Best, Matthias David Bickel wrote: > Is there any automatic mechanism f

Re: [R] likelihood from test result

2008-01-09 Thread Peter Dalgaard
David Bickel wrote: > Is there any automatic mechanism for extracting a likelihood or test > statistic distribution (PDF or CDF) from an object of class "htest" or > from another object of a general class encoding a hypothesis test > result? > > I would like to have a function that takes "x", an ob

Re: [R] likelihood from test result

2008-01-09 Thread Gabor Grothendieck
You could create an S3 generic that does it. That is not initially any less work than the if statement but if you add new distribution no existing code need be modified. Just add a new method for each distribution to be supported: getDistr <- function(x) { .Class <- names(x$value$statist

[R] likelihood from test result

2008-01-09 Thread David Bickel
Is there any automatic mechanism for extracting a likelihood or test statistic distribution (PDF or CDF) from an object of class "htest" or from another object of a general class encoding a hypothesis test result? I would like to have a function that takes "x", an object of class "htest", as its o