default_pic_stat: Internal function for getting default test statistics

View source: R/summary-stats.R

default_pic_statR Documentation

Internal function for getting default test statistics

Description

Creates a list of the default test statistics to be used to asses model adequacy

Usage

default_pic_stat()

Details

The following test statistics are produced by this function:

  1. m.sig: The mean of the squared contrasts. This is equivalent to the REML estimate of sigsq.

  2. c.var: The coefficient of variation of the absolute value of the contrasts.

  3. s.var: The slope of a linear model fit between the contrasts and their expected variances.

  4. s.anc: The slope of a linear model fit between the contrasts and their inferred ancestral state.

  5. s.hgt: The slope of a linear model fit between the contrasts and the node height at which they were calculated.

  6. d.cdf: The D-statistic from a KS test comparing the distribution of the contrasts to a normal distribution with mean 0 and variance equal to the square root of the squared mean of the contrasts.

Value

a named list of functions

See Also

calculate_pic_stat, pic_stat_msig, pic_stat_cvar, pic_stat_svar, pic_stat_sasr, pic_stat_shgt, pic_stat_dcdf

Examples

## get default test statistics
stats <- default_pic_stat()
stats

mwpennell/arbutus documentation built on Oct. 6, 2022, 10 a.m.