| design_a {DImodels} | R Documentation |
The "design_a" Dataset
Description
This dataset contains a set of proportions p1 to p9 where each row sums to 1. It is used as the design matrix for simulating other datasets in the DImodels package.
Usage
data("design_a")
Format
A data frame with 206 observations on the following 11 variables:
communityA numeric vector identifying each unique community, i.e., two rows with the same community value also share the same set of p1 to p9 values.
richnessA numeric vector indicating the number of species in the initial composition, i.e., the number of proportions from p1 to p9 that are >0.
p1A numeric vector indicating a proportion (of species 1).
p2A numeric vector indicating a proportion (of species 2).
p3A numeric vector indicating a proportion (of species 3).
p4A numeric vector indicating a proportion (of species 4).
p5A numeric vector indicating a proportion (of species 5).
p6A numeric vector indicating a proportion (of species 6).
p7A numeric vector indicating a proportion (of species 7).
p8A numeric vector indicating a proportion (of species 8).
p9A numeric vector indicating a proportion (of species 9).
Details
The columns p1 to p9 form a simplex space.
Examples
## Load the design_a data
data(design_a)
## View the first five entries
head(design_a)
## Explore the variables in design_a
str(design_a)
## Check that the proportions sum to 1 (required for DI models)
## p1 to p9 are in the 3rd to 11th columns in design_a
design_a_sums <- rowSums(design_a[3:11])
summary(design_a_sums)