-------------
       log:  /Users/public_user/Desktop/Stata3rdSes.smcl
  log type:  smcl
 opened on:  15 Apr 2004, 10:08:19

. label data "This file contains global temperature data from 1857-2003"

. describe

Contains data from /Users/public_user/Desktop/Global.dta
  obs:           148                          This file contains global
                                                temperature data from 1857-2003
 vars:            29                          12 Apr 2004 09:52
 size:        17,760 (98.3% of memory free)
-------------------------------------------------------------------------------
              storage  display     value
variable name   type   format      label      variable label
-------------------------------------------------------------------------------
Year            float  %9.0g
Jan             float  %9.0g
Feb             float  %9.0g
Mar             float  %9.0g
April           float  %9.0g
May             float  %9.0g
June            float  %9.0g
July            float  %9.0g
Aug             float  %9.0g
Sep             float  %9.0g
Oct             float  %9.0g
Nov             float  %9.0g
Dec             float  %9.0g
Average         float  %9.0g
Year2           float  %9.0g
Jan2            float  %9.0g
Feb2            float  %9.0g
Mar2            float  %9.0g
April2          float  %9.0g
May2            float  %9.0g
June2           float  %9.0g
July2           float  %9.0g
Aug2            float  %9.0g
Sep2            float  %9.0g
Oct2            float  %9.0g
Nov2            float  %9.0g
Dec2            float  %9.0g
JanS            float  %9.0g
JuneS           float  %9.0g
-------------------------------------------------------------------------------
Sorted by:

. label variable JanS   "Standardized Jan Data"

. describe

Contains data from /Users/public_user/Desktop/Global.dta
  obs:           148                          This file contains global
                                                temperature data from 1857-2003
 vars:            29                          12 Apr 2004 09:52
 size:        17,760 (98.3% of memory free)
-------------------------------------------------------------------------------
              storage  display     value
variable name   type   format      label      variable label
-------------------------------------------------------------------------------
Year            float  %9.0g
Jan             float  %9.0g
Feb             float  %9.0g
Mar             float  %9.0g
April           float  %9.0g
May             float  %9.0g
June            float  %9.0g
July            float  %9.0g
Aug             float  %9.0g
Sep             float  %9.0g
Oct             float  %9.0g
Nov             float  %9.0g
Dec             float  %9.0g
Average         float  %9.0g
Year2           float  %9.0g
Jan2            float  %9.0g
Feb2            float  %9.0g
Mar2            float  %9.0g
April2          float  %9.0g
May2            float  %9.0g
June2           float  %9.0g
July2           float  %9.0g
Aug2            float  %9.0g
Sep2            float  %9.0g
Oct2            float  %9.0g
Nov2            float  %9.0g
Dec2            float  %9.0g
JanS            float  %9.0g                  Standardized Jan Data
JuneS           float  %9.0g
-------------------------------------------------------------------------------
Sorted by:

. generate JanSF = (.9)*JanS+(sqrt(1-(.9)^2))*(1)

. summarize JanSF

    Variable |       Obs        Mean    Std. Dev.       Min        Max
-------------+--------------------------------------------------------
       JanSF |       148    .4358898    .9000001  -2.244218    2.78104

. generate JanSF= (.9)*JanS+(sqrt(1-(.9)^2))*(1)
JanSF already defined
r(110);

. replace JanSF= (.9)*JanS+(sqrt(1-(.9)^2))*(1)
(0 real changes made)

. replace JanSF=(.9)*JanS+(sqrt(1-(.9)^2))*(1)
(0 real changes made)

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

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

. label variable JanSF   "Correlation .9 FAKED"

. describe

Contains data from /Users/public_user/Desktop/Global.dta
  obs:           148                          This file contains global
                                                temperature data from 1857-2003
 vars:            30                          12 Apr 2004 09:52
 size:        18,352 (98.2% of memory free)
-------------------------------------------------------------------------------
              storage  display     value
variable name   type   format      label      variable label
-------------------------------------------------------------------------------
Year            float  %9.0g
Jan             float  %9.0g
Feb             float  %9.0g
Mar             float  %9.0g
April           float  %9.0g
May             float  %9.0g
June            float  %9.0g
July            float  %9.0g
Aug             float  %9.0g
Sep             float  %9.0g
Oct             float  %9.0g
Nov             float  %9.0g
Dec             float  %9.0g
Average         float  %9.0g
Year2           float  %9.0g
Jan2            float  %9.0g
Feb2            float  %9.0g
Mar2            float  %9.0g
April2          float  %9.0g
May2            float  %9.0g
June2           float  %9.0g
July2           float  %9.0g
Aug2            float  %9.0g
Sep2            float  %9.0g
Oct2            float  %9.0g
Nov2            float  %9.0g
Dec2            float  %9.0g
JanS            float  %9.0g                  Standardized Jan Data
JuneS           float  %9.0g
JanSF           float  %9.0g                  Correlation .9 FAKED
-------------------------------------------------------------------------------
Sorted by:
     Note:  dataset has changed since last saved

. correlate JanSF JuneS
(obs=148)

             |    JanSF    JuneS
-------------+------------------
       JanSF |   1.0000
       JuneS |   0.6582   1.0000


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

. correlate JanSF JuneS
(obs=148)

             |    JanSF    JuneS
-------------+------------------
       JanSF |   1.0000
       JuneS |   0.6928   1.0000


. correlate JanSF JanS
(obs=148)

             |    JanSF     JanS
-------------+------------------
       JanSF |   1.0000
        JanS |   0.9166   1.0000


. generate JanSA    = .
(148 missing values generated)

. - preserve
- preserve

. replace  JanSA   = 0 if (JanS <= 0.25)  & (JanS > -0.25)
(25 real changes made)

. edit
- preserve
- preserve

. replace  JanSA   = 1 if (JanS <= 1.25)  & (JanS > 0.25)
(41 real changes made)

. replace  JanSA   = .5 if (JanS <= .75)  & (JanS > 0.25)
(25 real changes made)

. replace  JanSA   = 1 if (JanS <= 1.25)  & (JanS > 0.75)
(0 real changes made)

. replace  JanSA   = 1.5 if (JanS <= 1.75)  & (JanS > 1.25)
(10 real changes made)

. replace  JanSA   = 2 if (JanS <= 2.25)  & (JanS > 1.75)
(5 real changes made)

. replace  JanSA   = 2.5 if (JanS <= 2.75)  & (JanS > 2.25)
(2 real changes made)

. replace  JanSA   = 3 if (JanS <= 4)  & (JanS > 2.75)
(0 real changes made)

. replace  JanSA   = -.5 if (JanS >= -.75)  & (JanS < -0.25)
(32 real changes made)

. replace  JanSA   = -1 if (JanS >= -1.25)  & (JanS < -0.75)
(20 real changes made)

. replace  JanSA   = -1.5 if (JanS >= -1.75)  & (JanS < -1.25)
(8 real changes made)

. replace  JanSA   = -2 if (JanS >= -2.25)  & (JanS < -1.75)
(2 real changes made)

. replace  JanSA   = -2.5 if (JanS >= -2.75)  & (JanS < -2.25)
(2 real changes made)

. replace  JanSA   = -3 if (JanS >= -4)  & (JanS < -2.75)
(1 real change made)

. Tabulate JanSA
unrecognized command:  Tabulate
r(199);

. tabulate JanSA

      JanSA |      Freq.     Percent        Cum.
------------+-----------------------------------
         -3 |          1        0.68        0.68
       -2.5 |          2        1.35        2.03
         -2 |          2        1.35        3.38
       -1.5 |          8        5.41        8.78
         -1 |         20       13.51       22.30
        -.5 |         32       21.62       43.92
          0 |         25       16.89       60.81
         .5 |         25       16.89       77.70
          1 |         16       10.81       88.51
        1.5 |         10        6.76       95.27
          2 |          5        3.38       98.65
        2.5 |          2        1.35      100.00
------------+-----------------------------------
      Total |        148      100.00

. label variable JanSA   "GROUPED,  JanS averaged into 1/2 sized intervals"

. describe

Contains data from /Users/public_user/Desktop/Global.dta
  obs:           148                          This file contains global
                                                temperature data from 1857-2003
 vars:            31                          12 Apr 2004 09:52
 size:        18,944 (98.2% of memory free)
-------------------------------------------------------------------------------
              storage  display     value
variable name   type   format      label      variable label
-------------------------------------------------------------------------------
Year            float  %9.0g
Jan             float  %9.0g
Feb             float  %9.0g
Mar             float  %9.0g
April           float  %9.0g
May             float  %9.0g
June            float  %9.0g
July            float  %9.0g
Aug             float  %9.0g
Sep             float  %9.0g
Oct             float  %9.0g
Nov             float  %9.0g
Dec             float  %9.0g
Average         float  %9.0g
Year2           float  %9.0g
Jan2            float  %9.0g
Feb2            float  %9.0g
Mar2            float  %9.0g
April2          float  %9.0g
May2            float  %9.0g
June2           float  %9.0g
July2           float  %9.0g
Aug2            float  %9.0g
Sep2            float  %9.0g
Oct2            float  %9.0g
Nov2            float  %9.0g
Dec2            float  %9.0g
JanS            float  %9.0g                  Standardized Jan Data
JuneS           float  %9.0g
JanSF           float  %9.0g                  Correlation .9 FAKED
JanSA           float  %9.0g                  GROUPED,  JanS averaged into
                                                1/2 sized intervals
-------------------------------------------------------------------------------
Sorted by:
     Note:  dataset has changed since last saved

.
. egen MJuneS = mean(JuneS), by( JanSA )

. label variable MJuneS   "Mean of June with respect to JanSA"

. twoway (scatter MJuneS JanSA , connect(l) sort)

. twoway (scatter MJuneS JanSA , connect(l) )

. twoway (scatter MJuneS JanSA , connect(l) sort )

. twoway (scatter MJuneS  JanSA , jitter(0))

. twoway (scatter MJuneS  JanSA , jitter(3))

. twoway (scatter MJuneS  JanSA , jitter(10))

. twoway (scatter MJuneS  JanSA , jitter(10))

. twoway (scatter MJuneS  JanSA , jitter(10))

. twoway (scatter JuneS  JanS , jitter(10))

. twoway (scatter MJuneS  JanSA , jitter(10))

. twoway (scatter MJuneS  JanSA , jitter(30))

. save "/Users/public_user/Desktop/Global3rdSes.dta"
file /Users/public_user/Desktop/Global3rdSes.dta saved

. log close
       log:  /Users/public_user/Desktop/Stata3rdSes.smcl
  log type:  smcl
 closed on:  15 Apr 2004, 10:54:38
-------------