Econometrics by Simulation
Simulations in *Stata* and #R#
PAGES
BLOG
*Stata*
#R#
Simulations 101
Theory [rants]
External Resources
Authors
Saturday, August 11, 2012
A note on correlated variables
* If A is correlated with B and B with C, does A need to therefore be correlated with C?
* No.
clear
set obs 10000
gen A = rnormal()
gen C = rnormal()
gen B = A+C
corr A B C
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment