snpgrou: Calculate metrics for how one or multiple locus is(are)...

Description Usage Arguments Value Examples

View source: R/snpgrou.R

Description

This function use linear discriminant analysis to classify response phenotype according to

Usage

1

Arguments

x

A data frame containing one or multiple SNP data for every loucs, the first column is the phenotype data, follow by SNP data column. If SNP data not alraedy in "SNP" type, this function use prep function to prepare the data.

rep

Integer, the number of replication for the cross-validation procedures.

Value

The results of gScore for each locus

Examples

1
2
3
4
5
require(MASS)
data(geneSNP)
snpgrou(geneSNP, 100)
# snp10001  snp10002  snp10003  snp10005  snp10008
# 0.3166901 0.8362573 0.3582222 0.3354503 0.3279649

Kevinpen/SNPgrou documentation built on Dec. 8, 2019, 8:32 a.m.