simredo: Create a copy of simulation-df with different amount of...

View source: R/coetest.R

simredoR Documentation

Create a copy of simulation-df with different amount of trials.

Description

This function copies the BFs of an already computated simulation dataframe and re-calculates only the density via a FFT.

Usage

simredo(df, n, rw = TRUE)

Arguments

df

A dataframe containing monte-carlo simulations. Must include the columns 'bf', 'density.bf', 'index', and 'simid'.

n

The amount of trials per simulation. Must be smaller than in the original simulation df.

rw

boolean. Set to TRUE if you also want to recalculate the density of the Random Walk. Needs the colums 'rw' and 'density.rw'.

Details

Computating BFs for monte-carlo-simulations can take a very long time. You can reuse an already calculated simulation-df and cut off the amount of trials per simulation. This function re-calculates only the densities of BF and RW via the Fast Fourier transformation.

Examples

sim.new <- simredo(sims, length(bf.new), rw=F)

mrzdcmps/changeofevidence documentation built on Feb. 27, 2025, 3:10 a.m.