design_b {DImodels}R Documentation

The "design_b" Dataset

Description

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.

Usage

data("design_b")

Format

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).

Details

The columns p1 to p6 form a simplex space.

Examples


## 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)
  

[Package DImodels version 1.3.2 Index]