Description Author(s) Examples
This is a matrix of p-values from the tpower function. The columns have different mean differences (See diffs in the example for the differences).
Tyler Hunt tyler@psychoanalytix.com
1 2 3 4 5 | data(tpower.data)
diffs <- c(0, .05, .15, .2, .25, .3, .35, .4, .45)
#-compute the power at each difference
power<-colMeans(tpower.data<.05)
plot(diffs, power, "l")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.