design_b | R Documentation |
This dataset contains a set of proportions p1
to p6
where each row sums to 1. It is used as the design matrix for simulating other datasets in the DImodels
package.
data("design_b")
A data frame with 47 observations on the following seven variables:
richness
A numeric vector indicating the number of species in the initial composition, i.e., the number of proportions from p1 to p6 that are >0.
p1
A numeric vector indicating a proportion (of species 1).
p2
A numeric vector indicating a proportion (of species 2).
p3
A numeric vector indicating a proportion (of species 3).
p4
A numeric vector indicating a proportion (of species 4).
p5
A numeric vector indicating a proportion (of species 5).
p6
A numeric vector indicating a proportion (of species 6).
The columns p1 to p6 form a simplex space.
## Load the design_b data
data(design_b)
## View the first five entries
head(design_b)
## Explore the variables in design_b
str(design_b)
## Check that the proportions sum to 1 (required for DI models)
## p1 to p6 are in the 2nd to 7th columns in design_b
design_b_sums <- rowSums(design_b[2:7])
summary(design_b_sums)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.