sim_plot {retrodesign} | R Documentation |
sim_plot: visualize type S/M errors
Description
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.
Usage
sim_plot(A, s, alpha = 0.05, df = Inf, n.sims = 5000, gg = TRUE)
Arguments
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 |
Value
A list of length 3 containing the power, type s, and type M error.
Examples
sim_plot(1,3.28)
sim_plot(.5,1)
[Package retrodesign version 0.2.2 Index]