Learn R Programming

ecocbo (version 1.0.0)

density_plot: Power curves for different sampling efforts

Description

plot_power() can be used to visualize the power of a study as a function of the sampling effort. The power curve plot shows that the power of the study increases as the sample size increases, and the density plot shows the overlapping areas where \(\alpha\) and \(\beta\) are significant.

Usage

density_plot(results, powr, m = NULL, n, method, cVar, model, completePlot)

Value

A density plot for the observed pseudoF values and a line marking the value of pseudoF that marks the significance level indicated in sim_beta().

The value of the selected 'm', 'n' and the corresponding component of variation are presented in all methods.

Arguments

results

Part of the object of class "ecocbo_beta" that results from sim_beta().

powr

Part of the object of class "ecocbo_beta" that results from sim_beta().

m

Calculated in plot_power(). When using the single.factor model, m is NULL.

n

Calculated in plot_power().

method

Which plot is to be drawn? It is used to omit the text label when the user selects both as method.

cVar

Calculated variation components.

model

Model used for calculating power. Options, so far, are 'single.factor' and 'nested.symmetric'.

completePlot

Logical. Is the plot to be drawn complete? If FALSE the plot will be trimmed to present a better distribution of the density plot.

Author

Edlin Guerra-Castro (edlinguerra@gmail.com), Arturo Sanchez-Porras

References

Underwood, A. J. (1997). Experiments in ecology: their logical design and interpretation using analysis of variance. Cambridge university press.

Underwood, A. J., & Chapman, M. G. (2003). Power, precaution, Type II error and sampling design in assessment of environmental impacts. Journal of Experimental Marine Biology and Ecology, 296(1), 49-70.

See Also

sim_beta() scompvar() sim_cbo() prep_data() plot_power()