TangleInferenceGauss: Inference in Tangle package under the Gaussian approximation

Description Usage Arguments Value Author(s)

Description

Computes the mean squared cross validation error using leave-one-out cross validaton for each of the three models "e+g", "e" and "g". Prediction is performed using linear projection based on the normal assumption.

Usage

1

Arguments

data

An array with dimensions (n,l,a) n: number of geographical locations, l: number of loci, a: max number of alleles

e

A vector of environmental variables with n entries (n: number of geographical locations)

g

A matrix of geographical coordinates with n rows and 2 columns (n: number of geographical locations)

...

Value

A vector contianing Mean Square Errors in predicting validation set genotypes for the three models

Author(s)

Casper Eriksen


GeoGenetix documentation built on May 1, 2019, 10:56 p.m.