simredo | R Documentation |
This function copies the BFs of an already computated simulation dataframe and re-calculates only the density via a FFT.
simredo(df, n, rw = TRUE)
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'. |
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.
sim.new <- simredo(sims, length(bf.new), rw=F)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.