Learn R Programming

bqtl (version 1.0-7)

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

varcov(x, ana.obj, partial=NULL, scope=<>

Arguments

x
A formula to specify the dependent and independent variables to be used in subsequent calculations e.g trait ~ locus(.)
ana.obj
An analysis.object, seemake.analysis.obj
partial
A formula whose right hand side specifies variables to be treated as covariates.
scope
Usually not explicitly used. Optional vector of variable names.

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
  • dfThe degrees of freedom, when no variables are specified in partial it is sum(subset==TRUE) - 1

Details

This is just a wrapper for make.varcov.

See Also

The examples in swap and twohk.