pbat.power( mode="continuous" )pbat.powerCmd( numOffspring=1, numParents=2, numFamilies=500,
additionalOffspringPhenos=TRUE,
ascertainment="affected",
modelGen="additive", modelTest=modelGen,
afreqMarker=NA,
penAA=0.8, penAB=0.5, penBB=0.3,
heritability=0.0, contsAscertainmentLower=0.0,
contsAscertainmentUpper=1.0,
pDiseaseAlleleGivenMarkerAllele=1.0, afreqDSL=0.1,
alpha=0.01,
offset="default",
numSim=1000,
ITERATION_KILLER=200 )
Be careful with the number of simulations! When you are first exploring, you can keep this low, but you should turn this all the way up before doing your final computation.
Note that some values of `pDiseaseAlleleGivenMarkerAllele' in combination with `afreqMarker' are not possible. These will return negative values (these are error codes for the GUI, which will provide more helpful messages).
Lastly, you might want to look into something like set.seed(1) e.g., if you want the results to be reproducable (set it to any number, but make note of this number, see set.seed for more details).
Hoffmann, T. and Lange, C. (2006) P2BAT: a massive parallel implementation of PBAT for genome-wide association studies in R. Bioinformatics. Dec 15;22(24):3103-5.
Horvath, Steve, Xu, Xin, and Laird, Nan M. The family based association test method: computing means and variances for general statistics. Tech Report.
pbat
,
pbat.last