Re: [R] htest class members and print method

2011-12-15 Thread David L Lorenz
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

[R] htest class members and print method

2011-12-14 Thread Rui Barradas
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.