On Tue, 24 Jan 2006, Florent Bresson wrote:
I would like to perform a test of mean difference on a series for
different levels of a factor (usually I'm using R, but I decided
to choose gretl for my students). Please, what's the command ?
OK, this is not super-convenient at present, but here's an example
using Ramanathan's data7-2 salary data file.
open data7-2
smpl GENDER=0 --restrict
genr W0 = WAGE
smpl GENDER=1 --restrict --replace
genr W1 = WAGE
smpl full
meantest W0 W1
In the GUI program you can also do this under Utilities/Test
Statistic calculator.
* Select the "2 means" tab
* In the upper panel, check "Use variable from dataset", and in the
selection box, type "WAGE(GENDER=0)". Press Enter in this box to
get the sample statistics calculated.
* In the lower panel, again check "Use variable from dataset",
type in "WAGE(GENDER=1)" and Enter.
* Click "OK" for the test.
Allin Cottrell