Skip to contents

Performs a simulation study to assess the performance of the test. Utilizes multiple cores to spread bootstrap samples over multiple cores

Usage

sim_study_opt_ar1(
  outDir = here::here("out.txt"),
  betaVec = c(0, 0.12, 0.25, 0.5),
  rhoVec = c(0, 0.25, 0.5, 0.75, 0.95),
  sigmaVec = c(0.25, 0.5, 0.75),
  nTVec = c(10, 25, 50),
  nSims = 200,
  nBootSims = 500,
  setSeed = NULL,
  nCores = NULL,
  missing = F
)

Arguments

outDir

Character string. Path to output file

betaVec

Numeric vector. Values for beta_1 (slope/trend parameter)

rhoVec

Numeric vector. Values for autoregressive parameter

sigmaVec

Numeric vector. Values of standard deviation of noise

nSims

Numeric scalar. Number of time series to simulate

nBootSims

Numeric scalar. Number of bootstrap data sets

setSeed

Numeric scalar. Value of the seed for simulations. (Default = NULL, a random number between 1-e7 is selected)

nCores

Numeric scalar. Specify the number of cores to utilize (Default = NULL, utilizes n-1 cores)

missing

Boolean. Whether to simulate with missing data (Default = F). If T then a single missing value is added at random to the response

nVec

Numeric vector. Values for the length of time series to simulate

Details

For convenience the intercept, beta_0 is set to zero

Examples

if (FALSE) { # \dontrun{
} # }