diid.disturbance: Construct feasible Random Noise Generating a Bernoulli...

Description Usage Arguments Value Author(s) See Also


Produces a sequence of random noise which would generate an observed sequence of finite symbols provided that the sequence of symbols results from a Bernoulli process.


diid.disturbance(x, random = TRUE,  estimates = FALSE)



A sequence of finite symbols represented as a character vector.


This can be a logical value or a number in the range 0-1. If TRUE, random noise will be generated. If FALSE, the constant value 0.5 will be used as the noise source. If a value in the range 0-1 is specified, that value will be used as a constant noise source. the default value is TRUE.


A logical value specifying if the distribution estimated for the Bernoulli process should be included in the return.


If estimates is TRUE, returns a list containing the following components:


the sequence of random noise as a numeric vector.


The stationary distribution estimated from x.

Otherwise, if estimate is FALSE, returns the sequence of random noise as a numeric vector.


Andrew Hart and Servet Mart<ed>nez

See Also

markov.test, diid.test, diid.disturbance

Search within the spgs package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.