simulation_master_list | R Documentation |
A list of 20 lists. Each of the 20 lists contains 31 items including 4 simulated time series.
Each series contains an ARIMA component, a periodic component simulated using trig functions, a component determined by a functional relationship
to exogenous predictors which we will call the f(x) component, a constant, and finally additional noise generated from either a
Gaussian distribution with mean = 0, or Poisson distribution. The 4 series within a given sublist only differ based on the f(x) component of the series. One series, series.mvnormx
, uses
a matrix X
generated by MASS::mvrnorm()
with corresponding coefficients for the f(x) component. All other
series use piece-wise functional relationships for the f(x) component of the series.
simulation_master_list
A list containing 20 sublists each with 31 items:
the number of observations in the simulated time series
the random seed used in set.seed()
for all random components in the sublist.
The AR order argument for stats::arima.sim()
.
The differencing order argument for stats::arima.sim()
.
The MA order argument for stats::arima.sim()
.
Coefficients for the AR process in stats::arima.sim()
,NULL
if arima.p=0
.
Coefficients for the MA process in stats::arima.sim()
,NULL
if arima.q=0
.
The number of periods in a full cycle for the periodic component of the series.
Coefficient on the sin term of the periodic component of the series.
Coefficient on the cos term of the periodic component of the series.
Number of predictors used to generate the f(x) component of series.mvnormx
.
The mean vector used in MASS::mvrnorm()
to generate X
for the f(x) component of series.mvnormx
.
The covariance matrix generated by clusterGeneration::rcorrmatrix()
used in MASS::mvrnorm()
to generate X
for the f(x) component of series.mvnormx
.
The matrix of X.cols
predictors generated by MASS::mvrnorm()
used to generate the f(x) component of series.mvnormx
.
The vector of X.cols
coefficients corresponding to the predictors of X
used to generate the f(x) component of series.mvnormx
.
The mean value used in stats::rnorm()
used to generate x.chng
.
The standard deviation value used in stats::rnorm()
used to generate x.chng
.
A coefficient for x.chng
used in all piece-wise functional relationship, f(x), components, as the coef
argument to lin.to.sqrt()
and quad.to.cubic
and the coef1
argument to lin.coef.change
.
A coefficient for x.chng
used in the piece-wise functional relationship, f(x), component of series.lin.coef.chng.x
, as the coef2
argument to lin.coef.change
.
A value used in two piece-wise functional relationship, f(x), components, as the break.point
argument to quad.to.cubic
and lin.coef.change
.
The max()
of x.chng.break.point
and some value > 0. Used in the piece-wise functional relationship, f(x), component of series.lin.to.sqrt.x
, as the break.point
argument to lin.to.sqrt
.
A vector of observations of a single predictor used to generate the f(x) component of all series other than series.mvnormx
.
The family of probability distributions to to generate the additional noise component.
The lambda
argument of stats::rpois()
used to generate additional noise, only actually used if type.noise = 'poisson'
.
The sd
argument of stats::rnorm()
used to generate additional noise, only actually used if type.noise = 'normal'
.
A numeric value which is the constant component of the series.
A simulated time series generated from the sum of ARIMA, Periodic, f(x), noise, and constant components. In this case f(x) represents linear relationships to the columns of the matrix X
.
A simulated time series generated from the sum of ARIMA, Periodic, f(x), noise, and constant components. In this case f(x) represents a linear relationship to a single predictor x.chng
which changes to a sqrt(x.chng)
relationship when x.chng > x.chng.break.point.sqrt
.
A simulated time series generated from the sum of ARIMA, Periodic, f(x), noise, and constant components. In this case f(x) represents a linear relationship to a single predictor x.chng
which changes coefficient when
x.chng > x.chng.break.point
.
A simulated time series generated from the sum of ARIMA, Periodic, f(x), noise, and constant components. In this case f(x) represents a quadratic relationship to a single predictor x.chng
which changes to a cubic relationship when
x.chng > x.chng.break.point
, in addition a coefficient changes sign at x.chng.break.point
.
Below we have the functional relationships used for the piece-wise series:
lin.to.sqrt <- function(x, break.point, coef){
if (x < break.point) {
out <- coef * x
} else {
out <- sqrt(x)
}
return(out)
}
quad.to.cubic <- function(x, break.point, coef){
if (x < break.point) {
out <- coef * (x ** 2)
} else {
out <- -coef * (x ** 3)
}
return(out)
}
lin.coef.change <- function(x, break.point, coef1, coef2){
if (x < break.point) {
out <- coef1 * x
} else {
out <- coef2 * x
}
return(out)
}
https://github.com/mtrupiano1/knnwtsim/blob/main/data-raw/simulation_master_list.R
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.