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:

`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 p9 values.

`richness`

A numeric vector indicating the number of species in the initial composition, i.e., the number of proportions from p1 to p9 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).

`p7`

A numeric vector indicating a proportion (of species 7).

`p8`

A numeric vector indicating a proportion (of species 8).

`p9`

A 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)
```

[Package

*DImodels* version 1.3

Index]