Learn R Programming

ecocbo (version 1.0.0)

scompvar: Simulated Components of Variation

Description

Computes the average components of variation among sampling units and within samples in relation to 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" obtained from prep_data().

n

Optional. Integer. Number of samples to consider.

m

Optional. Integer. Number of replicates to consider.

Author

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

Details

If m or n are set to NULL, the function automatically uses the largest available values from the experimental design set in sim_beta().

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