-------------
       log:  /Users/public_user/Desktop/CorDay2.smcl
  log type:  smcl
 opened on:  14 Apr 2004, 09:13:13

. correlation Jan June
unrecognized command:  correlation
r(199);

. correlate Jan June
(obs=148)

             |      Jan     June
-------------+------------------
         Jan |   1.0000
        June |   0.7402   1.0000


.  graph twoway scatter Jan June

.  graph twoway scatter April Oct

.  graph twoway scatter Jan June

. generate Fake = .74*Jan+(sqrt(1-(.74)^2))*invnorm(unifor())
Unknown function unifor()
r(133);

. generate Fake = .74*Jan+(sqrt(1-(.74)^2))*invnorm(uniform())

. - preserve

. replace Fake = .74*JanS+(sqrt(1-(.74)^2))*invnorm(uniform())
(148 real changes made)

. - preserve

. histogram JanS
(bin=12, start=-2.9778981, width=.46530171)

. histogram Fake
(bin=12, start=-2.6197984, width=.44342079)

. correlate Fake JanS
(obs=148)

             |     Fake     JanS
-------------+------------------
        Fake |   1.0000
        JanS |   0.7613   1.0000


.  graph twoway scatter Fake JanS

. replace Fake = .2*JanS+(sqrt(1-(.2)^2))*invnorm(uniform())
(148 real changes made)

.  graph twoway scatter Fake JanS

. replace Fake = 0*JanS+(sqrt(1-(0)^2))*invnorm(uniform())
(148 real changes made)

.  graph twoway scatter Fake JanS

. replace Fake = -.5*JanS+(sqrt(1-(-0.5)^2))*invnorm(uniform())
(148 real changes made)

.  graph twoway scatter Fake JanS

. correlate Fake JanS
(obs=148)

             |     Fake     JanS
-------------+------------------
        Fake |   1.0000
        JanS |  -0.5138   1.0000


. display uniform()
.64300587

. display uniform()
.97764851

. display uniform()
.07769935

.  set seed 7562531

. log close
       log:  /Users/public_user/Desktop/CorDay2.smcl
  log type:  smcl
 closed on:  14 Apr 2004, 09:44:56
-------------