slope.test: Estimating the linear time-dependency of the trait variance

View source: R/slope.test.R

slope.testR Documentation

Estimating the linear time-dependency of the trait variance

Description

This function estimates the linear dependency of the trait variance on time. This function is used by other functions and will generally not be used directly by users.

Usage

slope.test(x, model, tt, theta = NULL, int = NULL, mstep = NULL)

Arguments

x

vector of sample means

model

the model being evaluated

tt

vector of sample ages

theta

if the tested model is stasis, theta is the estimated theta from the data.

Details

If model = stasis: Estimates the slope of the least square regression of the size of deviations (their absolute value) from the optimal phenotype as a function of time. If model = random walk or directional trend: Estimates the slope of the least square regression of the size of the detrended data as a function of time. This function is used by other functions and will generally not be used directly by users.

Value

least-square slope estimate


klvoje/adePEM documentation built on Feb. 24, 2023, 1:28 p.m.