Simulates data from a time series regression with dynamic regression coefficients.
The dynamic regression coefficients are selected using the options from the
simUnivariate()
function in the wmtsa
package.
simRegression0(
signalNames = c("bumps", "blocks"),
nT = 200,
RSNR = 10,
p_0 = 5,
include_intercept = TRUE,
scale_all = TRUE,
include_plot = TRUE,
ar1 = 0
)
a list containing
the simulated function y
the simulated predictors X
the simulated dynamic regression coefficients beta_true
the true function mu_true
the true observation standard deviation sigma_true
vector of strings matching the "name" argument in the simUnivariate()
function,
e.g. "bumps" or "doppler"
number of points
root-signal-to-noise ratio
number of true zero regression terms to include
logical; if TRUE, the first column of X is 1's
logical; if TRUE, scale all regression coefficients to [0,1]
logical; if TRUE, include a plot of the simulated data and the true curve
the AR(1) coefficient for the predictors X; default is zero for iid N(0,1) predictors