Simulation study using optimization routine, multiple cores
Source:R/sim_study_opt_ar1.R
sim_study_opt_ar1.Rd
Performs a simulation study to assess the performance of the test. Utilizes multiple cores to spread bootstrap samples over multiple cores
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