% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/documentation.R
\docType{data}
\name{chapter_16_table_4}
\alias{chapter_16_table_4}
\alias{C16T4}
\alias{Chapter_16_Table_4}
\alias{c16t4}
\title{The data used in Chapter 16, Table 4}
\format{
An object of class \code{data.frame} with 29 rows and 6 columns.
}
\source{
\url{https://designingexperiments.com/data/}

Maxwell, S. E., Delaney, H. D., & Kelley, K. (2027). \emph{Designing experiments and
analyzing data: {A} model comparison perspective}. (4th ed.). New York, NY: Routledge.
}
\usage{
data(chapter_16_table_4)
}
\description{
The data used in Chapter 16, Table 4
}
\details{
The hypothetical data contained in Table 16.4 is supposed to represent the data from 29 children who participated in a study to evaluate the effectiveness of an intervention designed to increase inductive reasoning skills. The data consists of children who are nested within one of six classrooms, where each classroom contained students from both the control and the experimental condition. The question of interest is whether or not the children who participated in the experimental group actually improved their cognitive reasoning ability.

The children with condition values of 0 received the control, whereas the 14 children with condition values of 1 received the treatment. 4 of the children in the control condition were students in control Classroom 1, 6 of them were students in control Classroom 2, and 5 were students in control Classroom 3. Similarly, 3 of the students in the treatment condition were students in treatment Classroom 1, 5 were students in treatment Classroom 2, and 6 were students in treatment Classroom 3. It is also important to note that scores on the dependent variable appear in the rightmost column under the variable label "induct". The variable labeled "cog" in Table 16.4 represents cognitive ability scores that have been obtained for each student sometime prior to assigning classrooms to treatment conditions. The variable labeled "skill" represents a global measure of each teacher's teaching skill, once again assigned prior to assigning classrooms to treatment conditions.
}
\section{Variables}{

\describe{
\item{Observation}{observation/participant number}
\item{Room}{participant classroom placement}
\item{Condition}{participant condition (0=control, 1=treatment)}
\item{Cognition}{participant cognitive ability score}
\item{Skill}{participant's teacher's teaching skill}
\item{Inductive}{induction; scores on the dependent variable}}
}

\section{Synonym}{

C16T4
}

\examples{
# Load the data
data(chapter_16_table_4)

# Or, alternatively load the data as
data(C16T4)

# View the structure
str(chapter_16_table_4)

# ---------------------------------------------------------------------
# Optional: a factor-coded copy for model-comparison analyses / plotting.
# Condition and Room are stored as numeric codes so the book's examples
# reproduce exactly. Build a *copy* (suffix "_factors") so the canonical
# data set is left unchanged; Cognition, Skill, and Inductive stay
# numeric. Labels for Condition are taken from the description above
# (0 = control, 1 = treatment); Room (classroom) is a nesting id, so its
# numeric codes are kept as levels.
C16T4_factors <- chapter_16_table_4
C16T4_factors$Condition <- factor(C16T4_factors$Condition, levels = 0:1,
  labels = c("Control", "Treatment"))
C16T4_factors$Room <- factor(C16T4_factors$Room)

# These data come from a nested / mixed-effects design (children within
# classrooms); the book fits the appropriate multilevel model. Build the
# factor copy, then follow the book's procedure.
str(C16T4_factors)

}
\references{
Maxwell, S. E., Delaney, H. D., & Kelley, K. (2027). \emph{Designing experiments and analyzing data:
{A} model comparison perspective} (4th ed.). New York, NY: Routledge.
}
\author{
Ken Kelley \email{kkelley@nd.edu}
}
\keyword{datasets}
