| runExperiment {memoria} | R Documentation |
Computes ecological memory patterns on simulated pollen curves produced by the virtualPollen library.
Description
Applies computeMemory to assess ecological memory on a large set of virtual pollen curves.
Usage
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
)
Arguments
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. |
Value
A list with 2 slots:
-
namesmatrix of character strings, with as many rows and columns assimulations.file. Each cell holds a simulation name to be used afterwards, when plotting the results of the ecological memory analysis. -
outputa list with as many columns and columns assimulations.file. Each slot holds a an output ofcomputeMemory.-
memorydataframe with five columns:-
Variablecharacter, names and lags of the different variables used to model ecological memory. -
mediannumeric, median importance acrossrepetitionsof the givenVariableaccording to Random Forest. -
sdnumeric, standard deviation of the importance values of the givenVariableacrossrepetitions. -
minandmaxnumeric, percentiles 0.05 and 0.95 of importance values of the givenVariableacrossrepetitions.
-
-
R2vector, 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. -
predictiondataframe, with the same columns as the dataframe in the slotmemory, with the median and confidence intervals of the predictions of all random forest models fitted. -
multicollinearitymulticollinearity analysis on the input data performed withvif. A vif value higher than 5 indicates that the given variable is highly correlated with other variables.
-
Author(s)
Blas M. Benito <blasbenito@gmail.com>