powered by
Simulate data without neighbourhood
sim_hdchange_no_nbd( n = 200, p = 30, S = 30, tau = c(40, 100, 160), dist_info = list(dist = "normal", dependence = "iid", param = 1), jump_max = c(2, 2, 1.5) )
A \(p \times n\) simulated data matrix.
Number of time series observations.
Number of individuals.
Number of individuals with jumps.
An array of length \(K\) for time stamps for breaks.
A list specifying the distribution of the innovation.
An array of length \(K\) for jump sizes of the breaks.
'dist_info' should be a list containing the following items:
dist: distribution of the innovations, either "normal" or "t".
dependence: iid or MA(\(\infty\)), either "iid" or "MA_inf".
param = parameter of the distribution, standard deviation for normal distribution and degree of freedom for t distribution
See ts_hdchange() for example.
ts_hdchange()
data_no_nbd <- sim_hdchange_no_nbd(n = 200, p = 30, S = 30, tau = c(40, 100, 160), dist_info = list(dist = "normal", dependence = "MA_inf", param = 1), jump_max = c(2, 2, 1.5))
Run the code above in your browser using DataLab