Learn R Programming

mppR (version 1.5.0)

QTL_R2_GE: 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)

Value

Return:

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

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.

Author

Vincent Garin

Examples

Run this code

data(mppData_GE)

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

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

Run the code above in your browser using DataLab