Skip to content
Prev 32297 / 398506 Next

regression coefficients

beside ?anova(), you might also be interested in considering the j-test, a
quick google retrieved:

http://support.sas.com/rnd/app/examples/ets/spec/

for an elucidation of the test problem.

HTH,
Bernhard

-----Original Message-----
From: Prof Brian Ripley [mailto:ripley at stats.ox.ac.uk]
Sent: 20 May 2003 17:51
To: Spencer Graves
Cc: r-help at stat.math.ethz.ch
Subject: Re: [R] regression coefficients


Why is s assumed known and common to the k groups?  I doubt if that is 
what was meant (although it was too imprecise to be at all sure).

If `common' is a viable assumption, you can just fit a model with by-group
regressions vs one with a common regression (which seems to be what you
are testing) and use anova().

If not, the case k=2 encompasses the Welch t-test so exact distribution
theory is not going to be possible, but by fitting a common model and
three separate models and summing the -2log-lik for the latter you can
easily get the LT test and refer it to its `standard' (asymptotic)
Chi-squared distribution.
On Tue, 20 May 2003, Spencer Graves wrote:

            
give
You have assumed s is known, in which case it is a Chi-squared 
distribution.  If s is unknown, you need to maximize over it to get an LR 
test (separately under the null and the alternative).