EcoGenetics (version 1.2.1-5)

int.crosscor: Cross correlation. Internal.

Description

Cross correlation. Internal.

Usage

int.crosscor(Z, Y, con, nsim, alternative, test = "permutation",
  adjust.n = FALSE, plotit)

Arguments

Z

vector, matrix or data frame. with variable/s (in matrix or data frame formats, variables in columns).

Y

Vector with the second variable for cross-correlograms construction. if Z has multiple variables, the program will compute the cross correlograms between each and Y.

con

Connection network.

nsim

Number of Monte-Carlo simulations.

alternative

The alternative hypothesis. If "auto" is selected (default) the program determines the hypothesis by difference between the median of the simulations and the observed value. Other options are: "two.sided", "greater" and "less". if test == cross, for the first interval (d== 0) the p and CI are computed with cor.test.

adjust.n

Should be adjusted the number of individuals? (warning, this would change variances)

plotit

Should be generated a plot of the simulations?