Learn R Programming

nparLD (version 2.3.1)

rat: Rat Growth Study

Description

Body-weight measurements from rats observed over a five-week period. The data illustrate longitudinal growth curves in several treatment groups.

Usage

rat

Arguments

Format

A data frame with variables:

resp

Body weight in grams.

time

Week of measurement.

group

Treatment group.

subject

Rat identifier.

Examples

Run this code

if (FALSE) {
data(rat)

fit <- nparLD(resp ~ group * time,
              data = rat,
              subject = "subject",
              hypothesis = "H0F")
fit
}

if (FALSE) {
fit <- nparLD(resp ~ group * time,
              data = rat,
              subject = "subject",
              hypothesis = "H0p",
              contrast = list("group:time"))
fit
plot(fit)
plot(fit$MCTP)
}

Run the code above in your browser using DataLab