View source: R/visualization.R
sim_plot | R Documentation |
Graphs type S/M errors resulting from a simulation using the provided parameters (using the same simulation method as retrodesign()). Can optionally display using ggplot.
sim_plot(A, s, alpha = 0.05, df = Inf, n.sims = 5000, gg = TRUE)
A |
a numeric, an estimate of the true effect size |
s |
a numeric, standard error of the estimate |
alpha |
a numeric, the statistical significance threshold |
df |
a numeric, the degrees of freedom |
n.sims |
a numeric, how many times to simulate when calculating Type M error |
gg |
If TRUE and ggplot2 is installed, uses ggplot2 for graphic |
A list of length 3 containing the power, type s, and type M error.
sim_plot(1,3.28)
sim_plot(.5,1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.