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:
-
Simulated Dataset 1 Unbounded response, linear relationship between response and predictor, no covariance in residuals
-
Simulated Dataset 2 Unbounded response, no relationship between response and predictor, no covariance in residuals
-
Simulated Dataset 3 Unbounded response, linear relationship between response and predictor, covariance in residuals
-
Simulated Dataset 4 Unbounded response, no relationship between response and predictor, covariance in residuals
-
Simulated Dataset 5 Bounded response, linear relationship between response and predictor on link scale, no covariance in residuals
-
Simulated Dataset 6 Bounded response, no relationship between response and predictor on link scale, no covariance in residuals
-
Simulated Dataset 7 Bounded response, linear relationship between response and predictor on link scale, covariance in residuals
-
Simulated Dataset 8 Bounded response, no relationship between response and predictor on link scale, covariance in residuals
-
Simulated Lineage-Pair Covariance Matrix A 190*190 covariance matrix used in simulating the example datasets in this package.
-
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.