Econometrics By Simulation
Simulations and Analysis github.com/EconometricsBySimulation/
(Move to ...)
Home
#R#
#Julia#
*Stata*
External Resources
Web Apps
Author - Francis Smart
▼
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
‹
›
Home
View web version
No comments:
Post a Comment