Learn R Programming

bqtl (version 1.0-38)

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,...)

Value

A list with components

var.x

Moment matrix of the marker regressor variables

cov.xy

Moment matrix of the marker regressor variables versus the phenotype variable

var.y

The Second central moment of the phenotype variable

df

The degrees of freedom, when no variables are specified in partial it is sum(subset==TRUE) - 1

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.

...

ignored

Author

Charles C. Berry cberry@ucsd.edu

Details

This is just a wrapper for make.varcov.

See Also

The examples in swap and twohk.