Tablemeanse: Descriptive sample size, mean, and standard error

Description Usage Arguments Value See Also Examples

Description

This function computes sample size, mean and standard error of a quantitative trait for each genotype (or combination of genotypes)

Usage

1

Arguments

var

quantitative trait

dep

variable with genotypes or any combination of them

subset

an optional vector specifying a subset of observations to be used in the descriptive analysis

Value

tp

A matrix giving sample size (n), median (me) and standard error (se) for each genotype

See Also

Table.N.Per

Examples

1
2
3
4
5
6
7
8
9
data(SNPs)
# sample size, mean age and standard error for each genotype
#  Table.mean.se(SNPs$snp10001,SNPs$protein)

# The same table for a subset (males)
#  Table.mean.se(SNPs$snp10001,SNPs$protein,SNPs$sex=="Male")

# The same table assuming a dominant model
#  Table.mean.se(dominant(snp(SNPs$snp10001,sep="")),SNPs$protein,SNPs$sex=="Male")

isglobal-brge/SNPassoc documentation built on April 7, 2018, 1:11 p.m.