The 2-way table dataset is an extension of the table dataset with an additional factor on the rows of the dataset.
EXAMPLE The two-way table dataset below contains a dependent variable: Weight classified by two factors, Drug: A, B & C, and Sex: M & F. The groups for Drug are placed on first row of the dataset, the groups for the factor Sex on the first column of the dataset, and the data for the groups in the cells.
When entering the group names for a factor, only the first cell where the group applies needs to be labelled. Any blank cells below or to the right will assume the same group name.
EXAMPLE In the above example the group M on row 2 applies to row 3, and similarly F on row 4 applies to row 5.
As in the case for the table dataset, when a single row is used to name the groups Analyse-it cannot determine the names of the variables. In the example above it cannot determine what the groups A, B, & C and M & F represent and instead it assumes generic names.
The solution is to use an additional header row to hold the names of the variables. The name of the factor across the columns is placed in the cell above the first group on the columns, the name of the factor down the left of the rows is placed in the cell above the first row group, and the name of the observed variable is placed in the top-left cell of the dataset. Analyse-it will then pick-up the names of the variables.
EXAMPLE The dataset below is the same as before except an extra row has been added to hold the variable names. The name of factor on the columns Drug is placed above the first group A, the name of the factor on the rows Sex is placed above the group M, and the name of the dependent variable Weight is placed in the top left cell.
When the dataset is arranged on the Excel worksheet the next step is to define the range as a dataset.
To define the dataset:
We've been developing intuitive high-quality statistical software at an affordable price, backed up by fast friendly customer service for over 25 years...
Office hours: 9am-5pm GMT Mon-Fri
It's Tuesday 5:02 PM and the office is closed - e-mail us and we'll get back to you as soon as possible.