Learn R Programming

powerpkg (version 1.6)

Power Analyses for the Affected Sib Pair and the TDT Design

Description

There are two main functions: (1) To estimate the power of testing for linkage using an affected sib pair design, as a function of the recurrence risk ratios. We will use analytical power formulae as implemented in R. These are based on a Mathematica notebook created by Martin Farrall. (2) To examine how the power of the transmission disequilibrium test (TDT) depends on the disease allele frequency, the marker allele frequency, the strength of the linkage disequilibrium, and the magnitude of the genetic effect. We will use an R program that implements the power formulae of Abel and Muller-Myhsok (1998). These formulae allow one to quickly compute power of the TDT approach under a variety of different conditions. This R program was modeled on Martin Farrall's Mathematica notebook.

Copy Link

Version

Install

install.packages('powerpkg')

Monthly Downloads

206

Version

1.6

License

GPL (>= 2)

Maintainer

Daniel E Weeks

Last Published

May 19th, 2022

Functions in powerpkg (1.6)

ptb

A power table for the TDT design
ntdt.q

Computes power of a TDT study as a function of the susceptibility allele frequency q.
normplot

Power plotting demonstration
plotNsibs

plotNsibs: Create power plots for an affected sib pair linkage study
ntdt

Computes number of trios needed for a TDT study.
plotNtdt

A function for plotting the results from ntdt.q
plotDom

plotDom creates power graphs for an affected sibpair linkage study.
nsibs

A function to compute power of an affected sib pair design.
fnfam

Internal function called by ntdt
fx

Internal function for the ptdt function
ptdt

Power for a TDT design