Description Usage Arguments References Examples
This function conducts a version of Aris Spanos Auxiliary Regression to jointly test if the variable is independent and identically distributed.
1 |
data |
a data.frame with at least two columns or a list of length two. |
simulate |
logical if running in simulation. |
Spanos, A. (2019). Misspecification (M-S) Testing. Chapter 15 of Probability theory and statistical inference: Empirical modeling with observational data.
1 2 3 4 5 6 | # test with normal data
asm_preJoint(rnorm(40))
# test with non identically distributed data
asm_preJoint(c(rnorm(20), rnorm(20, 2, 2)))
# test with non independent data
asm_preJoint(diffinv(rnorm(40)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.