Learn R Programming

MSCquartets (version 3.1)

quartetStarTest: Hypothesis test for quartet counts fitting a star tree under the MSC

Description

Perform hypothesis test for star tree for a vector of quartet counts to fit expected frequencies of (1/3,1/3,1/3). The test performed is a standard Chi-square with 2 degrees of freedom.

Usage

quartetStarTest(obs)

Value

p-value

Arguments

obs

vector of 3 counts of resolved quartet frequencies

Examples

Run this code
obs=c(16,72,12)
quartetStarTest(obs)

Run the code above in your browser using DataLab