make.data: make.data

Description Usage Arguments Value Author(s)

Description

Create an snpBMAdata object given a matrix of genotypes and a vector of phenotypes

Usage

1
2
  make.data(X, Y, tags, family = "binomial", strata = NULL,
    covar = NULL, data = NULL)

Arguments

X

matrix of explanatory variables, either a SnpMatrix object, or a numeric matrix with 0, 1, 2 indicating copies of a counted allele at each SNP. Rows are samples, columns are SNPs.

Y

response

tags

a named character vector created by the tag() function

family

character string, "binomial" or "gaussian", passed to glib

strata

optional, if present, levels of factor(strata) define distinct groups of samples which should be analysed separately

Value

a list with entries X and Y

Author(s)

Chris Wallace


chr1swallace/snpBMA documentation built on May 13, 2019, 6:19 p.m.