Learn R Programming

ecocbo (version 0.12.0)

scompvar: Simulated components of variation

Description

scompvar can be used to calculate the average component of variation among units and the average component of variation within samples in terms of sampling effort.

Usage

scompvar(data, n = NULL, m = NULL)

Value

A data frame containing the values for the variation component among sites compVarA and in the residuals compVarR.

Arguments

data

Object of class "ecocbo_data" that results from prep_data().

n

Number of samples to be considered. Defaults to NULL.

m

Site label to be used as basis for the computation. Defaults to NULL.

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() plot_power() sim_cbo() prep_data()

Examples

Run this code
scompvar(data = simResults)
scompvar(data = simResults, n = 5, m = 2)

Run the code above in your browser using DataLab