testExpSim: Test For Differences Between Actual and Simulated Data

Description Usage Arguments Value

Description

This function will perform one-sample t-tests, with a manually set mu, for the data that you enter. Even if you want to set a manual mu value, you need to include an experimental / expected Df.

Usage

1
2
testExpSim(expDf, simDf, charactername, mymu = NULL, write = F,
  filename = "", subplotid = 0, simTest = F)

Arguments

expDf

An experimental data.frame with columns "Step", "Species", and a column named as the value inputted in "charactername" parameter.

simDf

A data.frame with simulated values, with columns "Step", "Species", and a column named as the value inputted in "charactername" parameter.

charactername

The name of the column of interest, e.g., "AdultAbsoluteDensity"

mymu

If mymu is set to something other than null, it will be used as the mu value for a one-sample t-test. If left blank, means from expDf will be used.

write

If write is set to true, this function will write a CSV file with filename provided

filename

If write is set to true, this function will write a CSV file with this filename.

Value

This function returns a data.frame with Step, Species, charactername, pval, and signif columns.


ecology-rocks/SortieIO documentation built on May 15, 2019, 7:57 p.m.