scompvar {ecocbo}R Documentation

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)

Arguments

data

Object of class "ecocbo_beta" that results from sim_beta().

n

Number of samples to be considered. Defaults to NULL.

m

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

Value

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

Note

If m or n are left as NULL, the function will calculate the components of variation using the largest available values as set in the experimental design in sim_beta().

Author(s)

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()

Examples

scompvar(data = epiBetaR)
scompvar(data = epiBetaR, n = 5, m = 2)

[Package ecocbo version 0.10.2 Index]