simulated.datasets {phylopairs}R Documentation

Simulated Datasets

Description

Simulated datasets are provided to help users understand functions. Lineage-pairs (n=190) were created from a simulated phylogenetic tree with 20 tips. A predictor variable was generated from random draws of a standard normal. Reponse variables of various structures were simulated as follows:

  1. Simulated Dataset 1 Unbounded response, linear relationship between response and predictor, no covariance in residuals

  2. Simulated Dataset 2 Unbounded response, no relationship between response and predictor, no covariance in residuals

  3. Simulated Dataset 3 Unbounded response, linear relationship between response and predictor, covariance in residuals

  4. Simulated Dataset 4 Unbounded response, no relationship between response and predictor, covariance in residuals

  5. Simulated Dataset 5 Bounded response, linear relationship between response and predictor on link scale, no covariance in residuals

  6. Simulated Dataset 6 Bounded response, no relationship between response and predictor on link scale, no covariance in residuals

  7. Simulated Dataset 7 Bounded response, linear relationship between response and predictor on link scale, covariance in residuals

  8. Simulated Dataset 8 Bounded response, no relationship between response and predictor on link scale, covariance in residuals

  9. Simulated Lineage-Pair Covariance Matrix A 190*190 covariance matrix used in simulating the example datasets in this package.

  10. Simulated Phylogenetic Tree A 20-species ultrametric phylogenetic tree used in simulating the example datasets in this package.

Format

The datasets are as follows

data1

A data frame with 190 rows and 4 columns.

sp1

Identity of Species 1 in Pair

sp2

Identity of Species 2 in Pair

pred

Numeric predictor variable

y

Numeric response variable

data2

A data frame with 190 rows and 4 columns.

sp1

Identity of Species 1 in Pair

sp2

Identity of Species 2 in Pair

pred

Numeric predictor variable

y

Numeric response variable

data3

A data frame with 190 rows and 4 columns.

sp1

Identity of Species 1 in Pair

sp2

Identity of Species 2 in Pair

pred

Numeric predictor variable

y

Numeric response variable

data4

A data frame with 190 rows and 4 columns.

sp1

Identity of Species 1 in Pair

sp2

Identity of Species 2 in Pair

pred

Numeric predictor variable

y

Numeric response variable

data5

A data frame with 190 rows and 4 columns.

sp1

Identity of Species 1 in Pair

sp2

Identity of Species 2 in Pair

pred

Numeric predictor variable

y

Numeric response variable

data6

A data frame with 190 rows and 4 columns.

sp1

Identity of Species 1 in Pair

sp2

Identity of Species 2 in Pair

pred

Numeric predictor variable

y

Numeric response variable

data7

A data frame with 190 rows and 4 columns.

sp1

Identity of Species 1 in Pair

sp2

Identity of Species 2 in Pair

pred

Numeric predictor variable

y

Numeric response variable

data8

A data frame with 190 rows and 4 columns.

sp1

Identity of Species 1 in Pair

sp2

Identity of Species 2 in Pair

pred

Numeric predictor variable

y

Numeric response variable

sim.cov.pairs

A 190x190 covariance matrix

sim.tree1

A phylo object

Source

Simulated data generated with the script provided in the 'inst' directory.


[Package phylopairs version 0.1.0 Index]