aggregate_SNPs {GWAS.BAYES} | R Documentation

## aggregate_SNPs

### Description

Aggregate SNPs and Y by Species

### Usage

    aggregate_SNPs(SNPs,Y,na.rm)

### Arguments

`SNPs` | Standardized SNP data set where the values of each column are either 0 or 1
`Y` | The phenotype response of interest
`na.rm` | Logical value where TRUE removes NA's in response vector as well corresponding rows in SNP matrix.

### Value

`SNPs` | reduced SNP dataset
`Y` | reduced Y vector

### Examples

    data("vignette_lm_dat")
    Y <- vignette_lm_dat$Phenotype
    SNPs <- vignette_lm_dat[,-1]
    SNPs <- standardize(SNPs = SNPs,method = "major-minor",number_cores = 1)

    aggregate_SNPs(SNPs = SNPs, Y = Y)

[Package GWAS.BAYES version 1.1.0 Index]