processSimData: Process Simulated Data

Description Usage Arguments Value

View source: R/processSimulations.R

Description

This function takes in the output of generateData if x is greater than 0 and returns a sorted version that has real and simulated experiences in the appropriate order, either with or without the Qtable.

Usage

1

Arguments

data

The output of generateData if it's not pure model-free.

x

The number of simulations per real trial.

removeTable

Logical: TRUE if the Qtable should be removed. FALSE if it should not be removed.

Value

A dataframe of real and simulated data in the appropriate order.

If removeTable = TRUE, the output of this does not contain the Q table and can be passed into functions such as stayProbabilityPlot.

If removeTable = FALSE, the output of this contains the Q table and can be passed into functions such as getPlots.


jdtrat/dynaq documentation built on July 24, 2020, 7:18 a.m.