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