Learn R Programming

nparLD (version 2.3.4)

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

# \donttest{
data(rat)

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

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

Run the code above in your browser using DataLab