imputeByAge: Impute missing individual data by age

Description Usage Arguments Value Examples

Description

Impute missing data within the bootstrap data object

Usage

1
imputeByAge(projectName, seed = 1, cores = 1, saveInd = TRUE, ...)

Arguments

projectName

The name or full path of the project, a baseline object (as returned from getBaseline or runBaseline, og a project object (as returned from openProject).

seed

The seed for the random number generator (used for reproducibility)

cores

An integer giving the number of cores to run the bootstrapping over.

saveInd

Logical: if TRUE save the imputing indices.

...

Unused but usd for robustness.

Value

Updated list with imputed bootstrap results

Examples

1
2
3
4
projectName <- "Test_Rstox"
boot <- runBootstrap(projectName, nboot=10, seed=1, bootstrapMethod="AcousticTrawl")
# imputeByAge() fills in empty cells:
system.time(bootstrap_Acoustic_imputed <- imputeByAge(projectName))

Sea2Data/Rstox documentation built on May 14, 2019, 8:58 a.m.