sim0_design {DImodels} | R Documentation |
The "sim0_design" Dataset
Description
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.
Usage
data("sim0_design")
Format
A data frame with 16 observations on the following 5 variables:
community
A 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.
richness
A numeric vector indicating the number of species in the initial composition, i.e., the number of proportions from p1 to p3 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).
Details
The columns p1 to p3 form a simplex space.
Examples
## 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)
[Package DImodels version 1.3.2 Index]