# NOT RUN {
## Example 1: obtain the power for testing the genetic effect
# based on 50 POP families simulated using 100 simulations
# }
# NOT RUN {
set.seed(4321)
fampower(N.fam = 50, N.sim = 100, effectsize = 1, beta.sex = 0.8, alpha = 0.05, side = 2,
design = "pop+", variation = "none", base.dist = "Weibull", allelefreq = 0.02,
base.parms = c(0.01, 3))
# }
# NOT RUN {
## Example 2: obtain the power for both the main and interaction effects
# based on 50 POP families simulated using 100 simulations
# }
# NOT RUN {
set.seed(4321)
fampower(N.fam = 50, N.sim = 100, effectsize = c(1.5, 1), beta.sex = 0.8, alpha = 0.05,
side = 2, interaction = TRUE, design = "pop+", variation = "none", base.dist = "Weibull",
allelefreq = 0.02, base.parms = c(0.01, 3))
# }
Run the code above in your browser using DataLab