simulat: Sample simulation

Description Usage Arguments Details Value Author(s) References Examples

Description

This function simulates new samples based on known percentages

Usage

1
simulat(x, pop = 10000, nsamples = 10, ssample = 300)

Arguments

x

Relative frequencies of taxa in the sample of interest. It should correspond to a row in a matrix where species are in columns and samples in rows.

pop

Size of the population to be simulated.

nsamples

Number of samples to be drawn.

ssample

Sample size.

Details

A population of size pop and relative frequencies x is simulated, and randomly sampled to produce nsamples new samples. This procedure assumes that the percentages contained in x represent the real population.

Value

Returns a matrix samples that contains simulated samples in rows and species in columns.

Author(s)

Alexander Correa-Metrio, Kenneth R. Cabrera.

References

Correa-Metrio, A., K.R. Cabrera, and M.B. Bush. 2010. Quantifying ecological change through discriminant analysis: a paleoecological example from the Peruvian Amazon. Journal of Vegetation Science 21: 695-704.

Examples

1
2
3
# data from lake Quexil (Leyden et al 1994)
data(quexilper)
simulat(quexilper[1,])

paleoMAS documentation built on May 2, 2019, 6:46 a.m.