Description Usage Arguments Value Note See Also Examples
All information needed for the 'power-function' should be provided by
an object of class powPar
. To extract this information the
function pp
should be used.
1 |
x |
An object of class powPar. |
name |
A character indicating the name of the object to be extracted. |
Everything that can be stored within a list is possible.
The name pp
is an abbreviation for power parameter.
For extracting individual elements of n
, theta
and xi
the functions n
, theta
, or
xi
should be used.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | psi <- powPar(theta = seq(from = 0.5, to = 1.5, by = 0.5),
n = seq(from = 10, to = 30, by = 10),
muA = 0,
muB = 1)
pp(psi, name = "muA")
## an example of usage
powFun <- function(psi){
power.t.test(n = n(psi),
delta = pp(psi, "muA") - pp(psi, "muB"),
sd = theta(psi)
)$power
}
## testing the power-function
powFun(psi)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.