phen.reconstruction: The ancestral state reconstruction of a binary phenotype.

phen.reconstructionR Documentation

The ancestral state reconstruction of a binary phenotype.

Description

This vector contains the terminal and ancestral states of a binary phenotypic variable (data(phen)). The observed phenotypic states of sampled individuals (i.e., those represented at the terminal nodes of a phylogenetic tree) are presented first, in elements 1:N (here 1:100). The unobserved ancestral states of the phenotype at internal nodes have been inferred via ancestral state reconstruction, using asr(phen, tree).

Usage

data(phen.reconstruction)

Format

A named vector of length 199.

Details

Like the original phenotypic vector (data(phen)), phen.reconstruction is a binary variable that is encoded as a factor with two possible phenotypic states, "A" and "B", which may be represented by the numeric values 1 and 2 (as in str(phen.reconstruction)).

Each individual in the sample is represented by a unique identifier (name) which corresponds to the name of one element of the phenotypic vector. (Internal node names have been generated during ancestral state reconstruction.) Each element of the phenotypic vector gives the phenotypic value of the named individual.

Author(s)

Caitlin Collins caitiecollins@gmail.com


caitiecollins/treeWAS documentation built on March 9, 2024, 3:15 p.m.