imputeByAge: Impute missing individual data by age

Description Usage Arguments Value Examples

View source: R/rstox_reports.r

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.

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 April 18, 2018, 11:11 p.m.