gls.pi: GLS prediction intervals

Description Usage Arguments Value References Examples

View source: R/gls.pi.r

Description

Computes prediction intervals for a GLS regression. When the variance covariance matrix is based on a phylogeny, this computes the prediction intervals for a phylogenetic regression (PGLS).

Usage

1
gls.pi(Y, X, Sigma, k)

Arguments

Y

Dependent variable.

X

Independent variable.

Sigma

Matrix describing the covariance among data points. For the phylogenetic regression, this is based on a phylogeny (vcv(tree)).

k

The sample size of the estimated future points.

Value

GLS results.

Prediction intervals of the estimates ('PI').

Prediction intervals of unobserved values of Y ('PI.plot').

References

Smaers & Rohlf (2016) Testing species' deviations from allometric preductions using the phylogenetic regression. Evolution. 70 (5): 1145-1149.

Examples

1
see https://smaerslab.com/software/

JeroenSmaers/evomap documentation built on May 7, 2019, 10:35 a.m.