Skip to content
Prev 503 / 63421 Next

R-alpha: new class for chisquare tests?

Kurt Hornik <hornik@ci.tuwien.ac.at> writes:
Couldn't the basic logic of print.lm/summary.lm/anova.lm be applied
here too? I.e.

h<-chisquare.test(blipblop)
observed(h)
fitted(h)
partials(h)

This might be implemented simply by adding items to the return list,
and have fitted.htest() extract the relevant item if it is there.

Or maybe slightly safer from a name-space point of view: add *one*
extra item ("comp", say) which is a list containing the other stuff.