Learn R Programming

bqtl (version 1.0-7)

make.varcov: Create moment matrices

Description

Create a moment matrix of the marker variables and of the regressors by the phenotype variable. For use in regression modelling on the markers.

Usage

make.varcov(regressor.matrix, y, subset=is.finite(y), casewt=NULL)

Arguments

regressor.matrix
The object produced by make.regressor.matrix
y
A vector of phenotype information with the same number of elements as there are rows in regressor.matrix
subset
Logical vector with the same number of elements as there are rows in regressor.matrix to indicate which rows to keep.
casewt
Optional vector of case weights.

Value

  • A list with components
  • var.xMoment matrix of the marker regressor variables
  • cov.xyMoment matrix of the marker regressor variables versus the phenotype variable
  • var.yThe Second central moment of the phenotype variable
  • dfsum(subset==TRUE) - 1