get.sim.res: Read simulation results

View source: R/misc.R

get.sim.resR Documentation

Read simulation results

Description

Go through a folder and read all files and combine the results into a multidimensional array.

Usage

get.sim.res (dir, res.name="res", verbose=TRUE)
MCsummary (dir, res.name = "res", exclude.some = TRUE,
                 exclude.col = 1, verbose = TRUE)
getFormattedMCSummary (path, sim, nn, fit.method, exclude.some = TRUE,
                 exclude.col = 1, verbose = TRUE, coef.0 = NULL, digit1
                 = 2, sum.est = c("mean", "median"), sum.sd =
                 c("median", "mean"), style = 1, keep.intercept =
                 FALSE)

Arguments

dir

directory of MC result files

path

partial path to the directory of MC result files

res.name

name of the R object saved in the files, default is res, but may be others

verbose

Boolean

sim

a string to denote simulation setting

nn

a vector of sample sizes

fit.method

a string to denote fitting method. sim, nn and fit.method together forms the name of the directory containing MC result files

exclude.col

column number

exclude.some

whether to exclude MC results that are extreme

coef.0

simulation truth

digit1

digits

sum.est

use mean or median as location estimate summary

sum.sd

use mean or median as sd estimate summary

style

integer

keep.intercept

whether to include intercept in the table

Details

Depends on package abind to combine arrays from files.

Value

A multidimensional array.


kyotil documentation built on Nov. 28, 2023, 1:09 a.m.