QTL_R2_GE: MPP GxE QTL R2

View source: R/QTL_R2_GE.R

QTL_R2_GER Documentation

MPP GxE QTL R2

Description

Compute global and partial R2 statistics for MPP GxE QTL using a linear model. The global R2 is the contribution of all QTL positions while the partial R2 is the specific contribution of an individual QTL position.

Usage

QTL_R2_GE(mppData, trait, QTL = NULL, glb.only = FALSE)

Arguments

mppData

An object of class mppData.

trait

Character vector specifying which traits (environments) should be used.

QTL

Object of class QTLlist representing a list of selected marker positions obtained with the function QTL_select() or a vector of character marker positions names. Default = NULL.

glb.only

Logical value. If glb.only = TRUE, only the global and global adjusted R squared will be returned. Default = FALSE.

Value

Return:

List containing the global unadjusted R2, the global adjusted R2, the partial unadjusted R2, and the partial adjusted R2.

Author(s)

Vincent Garin

Examples


data(mppData_GE)

Qpos <- c("PZE.105068880", "PZE.106098900")

R2 <- QTL_R2_GE(mppData = mppData_GE, trait = c('DMY_CIAM', 'DMY_TUM'),
                QTL = Qpos)


mppR documentation built on Jan. 6, 2023, 1:23 a.m.