as.bootstrap: Create a Bootstrap Table

View source: R/bootstrap.R

as.bootstrapR Documentation

Create a Bootstrap Table

Description

Creates a bootstrap table.

Creates a bootstrap table from a PsN bootstrap results csv filepath. If x is not an existing file it is treated as a modelname and the results file is sought.

Usage

as.bootstrap(x, ...)

## S3 method for class 'character'
as.bootstrap(
  x,
  skip = 28,
  check.names = FALSE,
  lo = "5",
  hi = "95",
  verbose = TRUE,
  pattern = "bootstrap_results.csv",
  bootcsv = dir(modeldir(x, ...), pattern = pattern, recursive = TRUE, full.names = TRUE),
  ...
)

Arguments

x

character

...

passed to read.csv

skip

number of lines to skip in bootstrap_results.csv

check.names

passed to bootstrap reader

lo

the PsN bootstrap lower confidence limit (%)

hi

the PsN bootstrap upper confidence limit (%)

verbose

display messages

pattern

pattern to search for bootstrap file

bootcsv

path to bootstrap_results.csv or equivalent

Value

data.frame

data.frame

Methods (by class)

  • as.bootstrap(character): character method

See Also

as.bootstrap.character

Other as.bootstrap: as.bootstrap.bootstrap(), as.bootstrap.numeric()

Other as.bootstrap: as.bootstrap.bootstrap(), as.bootstrap.numeric()

Examples

library(magrittr)
options(project = system.file('project/model',package='nonmemica'))
1001 %>% as.bootstrap

bergsmat/nonmemica documentation built on Sept. 15, 2023, 9:22 a.m.