Description Usage Arguments Value Author(s) See Also
View source: R/runExperiment.R
Applies computeMemory to assess ecological memory on a large set of virtual pollen curves.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | runExperiment(
simulations.file = NULL,
selected.rows = 1,
selected.columns = 1,
parameters.file = NULL,
parameters.names = NULL,
sampling.names = NULL,
driver.column = NULL,
response.column = "Response_0",
subset.response = "none",
time.column = "Time",
time.zoom = NULL,
lags = NULL,
repetitions = 10
)
|
simulations.file |
list of dataframes, output of the function |
selected.rows |
numeric vector, rows (virtual taxa) of |
selected.columns |
numeric.vector, columns (experiment treatments) of |
parameters.file |
dataframe of simulation parameters. |
parameters.names |
vector of character strings with names of traits and niche features from |
sampling.names |
vector of character strings with the names of the columns of |
driver.column |
vector of character strings, names of the columns to be considered as drivers (generally, one of "Suitability", "Driver.A", "Driver.B). |
response.column |
character string defining the response variable, typically "Response_0". |
subset.response |
character string, one of "up", "down" or "none", triggers the subsetting of the input dataset. "up" only models ecological memory on cases where the response's trend is positive, "down" selectes cases with negative trends, and "none" selects all cases. |
time.column |
character string, name of the time/age column. Usually, "Time". |
time.zoom |
numeric vector with two numbers defining the time/age extremes of the time interval of interest. |
lags |
ags numeric vector of positive integers, lags to be used in the equation. Generally, a regular sequence of numbers, in the same units as |
repetitions |
integer, number of random forest models to fit. |
A list with 2 slots:
names matrix of character strings, with as many rows and columns as simulations.file. Each cell holds a simulation name to be used afterwards, when plotting the results of the ecological memory analysis.
output a list with as many columns and columns as simulations.file. Each slot holds a an output of computeMemory.
memory dataframe with five columns:
Variable character, names and lags of the different variables used to model ecological memory.
median numeric, median importance across repetitions of the given Variable according to Random Forest.
sd numeric, standard deviation of the importance values of the given Variable across repetitions.
min and max numeric, percentiles 0.05 and 0.95 of importance values of the given Variable across repetitions.
R2 vector, values of pseudo R-squared value obtained for the Random Forest model fitted on each repetition. Pseudo R-squared is the Pearson correlation beteween the observed and predicted data.
prediction dataframe, with the same columns as the dataframe in the slot memory, with the median and confidence intervals of the predictions of all random forest models fitted.
multicollinearity multicollinearity analysis on the input data performed with vif. A vif value higher than 5 indicates that the given variable is highly correlated with other variables.
Blas M. Benito <blasbenito@gmail.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.