rda
), Constrained Correspondence Analysis
(cca
) or distance-based RDA (capscale
).
The function is a special case of generic simulate
, and
works similarly as simulate.lm
.## S3 method for class 'rda':
simulate(object, nsim = 1, seed = NULL, indx = NULL, rank = "full", ...)
rda
model.simulate
for details.permuted.index
,
shuffle
or sample
predict.rda
or predict.cca
.simulate
."lm"
method of
simulate
, and adds Gaussian (Normal) error to the
fitted values (fitted.rda
) using function
rnorm
. The standard deviations are estimated
independently for each species (column) from the residuals after
fitting the constraints. Alternatively, the function can take a
permutation index that is used to add permuted residuals
(unconstrained component) to the fitted values. Raw data are used in
rda
. Internal Chi-square transformed data in
cca
within the function, but the returned data frame is
similar to the original input data. The simulation is performed on
internal metric scaling data in capscale
, but the
function returns the Euclidean distances calculated from the simulated
data. The simulation uses only the real components, and the imaginary
dimensions are ignored.simulate
for the generic case and for
lm
objects. Functions fitted.rda
and
fitted.cca
return fitted values without the error
component.data(dune)
data(dune.env)
mod <- rda(dune ~ Moisture + Management, dune.env)
## One simulation
update(mod, simulate(mod) ~ .)
## An impression of confidence regions of site scores
plot(mod, display="sites")
for (i in 1:5) lines(procrustes(mod, update(mod, simulate(mod) ~ .)), col="blue")
Run the code above in your browser using DataLab