| DiallelPower | R Documentation |
DiallelPower() estimates by simulation the power of Griffing's F tests of gca, sca and reciprocal
effects for numbers of replicates, so that the size of a diallel experiment can be planned.
DiallelPower(
Parents,
Method,
Rep,
Model = 1,
gca,
sca,
rec = 0,
Error,
nsim = 500,
alpha = 0.05,
seed = NULL
)
## S3 method for class 'da_power'
plot(x, ...)
Parents |
number of parents |
Method |
Griffing's method, |
Rep |
vector of numbers of replicates to compare. |
Model |
|
gca, sca, rec |
standard deviations of the gca, sca and reciprocal effects. |
Error |
standard deviation of the plot errors |
nsim |
number of simulated data sets for each number of replicates (default |
alpha |
level of the tests (default |
seed |
seed of the random numbers, or |
x |
a |
... |
unused. |
For every number of replicates in Rep, nsim data sets are drawn with DiallelSim and
analysed with Griffing's closed forms; the power is the share of data sets whose test is significant at level
alpha, with its Monte Carlo standard error \sqrt{\hat{p}(1 - \hat{p})/n_{sim}}.
The tests are those of Model: in Model 1 every line against the error, in Model 2 gca against sca. The
block effects do not change the tests and are left out.
A data.table of class c("da_power", ...): columns Rep, Source (gca, sca,
reciprocals), Power and SE; plot() draws the power curves.
Muhammad Yaseen (myaseen208@gmail.com)
DiallelSim, Griffing
Other DiallelAnalysisR planning:
DiallelSim()
pw <-
DiallelPower(
Parents = 6
, Method = 2
, Rep = 2:4
, Model = 1
, gca = 1
, sca = 1.5
, rec = 0
, Error = 4
, nsim = 100
, alpha = 0.05
, seed = 1
)
pw
plot(pw)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.