Rui,
  The answer to your last question is easy--you cannot add a new component 
to an object of class "htest" and have it printed by print.htest. But that 
does not mean that you cannot add a component to the output for your own 
use.
  You will need to decide what you want for output, both visually and in 
terms of ease of any post processing. A data.frame would be nice in that 
it would already for the table for any report, but it would require that 
the test you have designed have the same output for all orders. An 
alternative would be a list that contains the output from each test. 
Printing the list would create a nicely formatted report for each test.
Dave

> Hello,
>
> I am writing a test function, and would like to have it return an
> appropriate 'htest'
> object. This is very easy, but the test can be run for several orders, a
> frequent situation
> in time series tests.
> 
> It would be nice to return a data.frame with order, params, test 
statistic,
> p.value.
> 
> After seeing the 'htest' members in the help pages, I discovered that 
the
> class has a 'null.value' member that fits the job (it's what I'm using) 
but
> it's name may be misleading.
> 
> Is it possible to create a new member with a new, or at least different,
> name and have print.htest correctly print it?
> 
> 
> Rui Barradas
> 

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to