changepoint: An integer for where the change point occurs
mean1: The mean prior to the change point
mean2: The mean after the change point
dist: The function with which random data will be generated
meanparam: A string for the parameter in dist representing the mean
...: Other arguments to be passed to dist
Returns
A vector of the simulated data
Details
This function generates artificial change point data, where up to the specified change point the data has one mean, and after the point it has a different mean. By default, the function simulates standard Normal data with no change. If changepoint is NULL, then by default the change point will be at about the middle of the data.