Description Usage Arguments Value See Also Examples

This function computes sample size and percentage for each category of a categorical trait (e.g. case-control status) for each genotype (or combination of genotypes).

1 | ```
Table.N.Per(var, dep, subset = !is.na(var))
``` |

`var` |
categorical 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. |

`tp` |
A matrix giving sample size (n),and the percentage ( for each genotype |

1 2 3 4 5 6 7 8 9 | ```
data(SNPs)
#sample size and percentage of cases and controls for each genotype
# Table.N.Per(SNPs$snp10001,SNPs$casco)
# The same table for a subset (males)
# Table.N.Per(SNPs$snp10001,SNPs$casco,SNPs$sex=="Male")
# The same table assuming a dominant model
# Table.N.Per(dominant(snp(SNPs$snp10001,sep="")),SNPs$casco,SNPs$sex=="Male")
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.