Learn R Programming

hamlet (version 0.9.6)

vcaplong: Long-format data of the Castration-resistant Prostate Cancer experiment using the VCaP cell line.

Description

The long-format of the VCaP experiment PSA-measurements may be used to model longitudinal measurements during interventions (Vehicle, ARN, or MDV). Body weights and PSA were measured weekly during the experiment. PSA concentrations were log2-transformed to make data better normally distributed.

Usage

data(vcaplong)

Arguments

Format

A data frame with 225 observations on the following 11 variables.

PSA

Raw PSA (prostate-specific antigen) measurements with unit (ug/l)

log2PSA

Log2-transformed PSA (prostate-specific antigen) measurements with unit (log2 ug/l)

BW

Body weights (g)

Submatch

A grouping factor for indicating which measurements belong to individuals that were part of the same submatch prior to interventions

ID

A character vector indicating unique animal IDs

Week

Week of the experiment, notice that this is not the same as the week of drug administration (see below)

DrugWeek

Week since beginning administration of the drugs

Group

Grouping factor for intervention groups of the observations

Vehicle

Binary indicator for which observations belonged to the group 'Vehicle'

ARN

Binary indicator for which observations belonged to the group 'ARN-509'

MDV

Binary indicator for which observations belonged to the group 'MDV3100'

Details

Notice that the long-format is suitable for modeling longitudinal measurements. The grouping factors ID or Submatch could be used to group observations belonging to a single individual or matched individuals.

Examples

Run this code
# NOT RUN {
data(vcaplong)

str(vcaplong)
head(vcaplong)

library(lattice)
xyplot(log2PSA ~ DrugWeek | Group, data = vcaplong, type="l", group=ID, layout=c(3,1))
xyplot(BW ~ DrugWeek | Group, data = vcaplong, type="l", group=ID, layout=c(3,1))
# }

Run the code above in your browser using DataLab