Learn R Programming

twoway (version 0.7.0)

Analysis of Two-Way Tables

Description

Carries out analyses of two-way tables with one observation per cell, together with graphical displays for an additive fit and a diagnostic plot for removable 'non-additivity' via a power transformation of the response. It implements methods from Tukey's Exploratory Data Analysis (1973) , including a 1-degree-of-freedom test for row*column 'non-additivity', linear in the row and column effects.

Copy Link

Version

Install

install.packages('twoway')

Monthly Downloads

165

Version

0.7.0

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Michael Friendly

Last Published

July 21st, 2026

Functions in twoway (0.7.0)

sentRT

Reaction times for T/F judgments
Rubber

Compressibility of Rubber
as.twoway

Create an initial twoway object representing the data before fitting
ladder_power

Find the nearest ladder-of-powers representation of a power transformation
anova.twoway

ANOVA summary for a two-way table, including Tukey Additivity Test
as.data.frame.twoway

Convert a twoway object to a data frame This function converts a "twoway" object to a data.frame
meanfit

Fit a two-way table using row and column means
plot.twoway

Plot methods for two-way tables
to_long

Reshape a data.frame or matrix to a long data.frame
medianfit

Fit a two-way table using median polish
residuals.twoway

Extract residuals from a twoway object
print.twoway

Print method for two-way tables
twoway.formula

Formula method for twoway analysis using a dataset in long format
twoway

Analysis of a two-way table with one observation per cell
Arizona

Mean monthly temperatures in Arizona
taskRT

Data on reaction times for various tasks and topics
insectCounts

Counts of an insect for the combinations of 4 treatments and 6 areas of a field
VermontPop

Vermont country populations from the US Census, 1900-1990
drugs

Scores for 5 subjects after being given each of 4 drugs
hstart

Number of U.S. housing starts by month for the years 1965 -- 1973