Learn R Programming

GeoGenetix (version 0.0.2)

TangleInferenceGauss: Inference in Tangle package under the Gaussian approximation

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

TangleInferenceGauss(data, e, g, ...)

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

genotypes for the three models