***simple simulation of what it means when I am regressing evggfp on ADL. what does the transformation mean?.
get fILE='C:\aging\fRAILTY\frailty_data\simul_01.sav'.
compute physical = 100 - 5*age.
compute mental = 100 - 10*age.
Compute SRH1 = physical.
Compute ADL1 = mental.
compute ADL2 = .5*physical + .5*mental.
compute ADL3 = .25*physical + .75 * mental.
compute ADL4 = .75*physical + .25 * mental.
***********************. SRH and ADL conditionally independent. ADL1 = mental.
regression /dependent = SRH1/enter ADL1.
**constant = 50.
**coeff = .5 .
temporary.
select if (age le 10).
regression /dependent = SRH1/enter ADL1.
**constant = 50.
**coeff = .5 .
***no change. varying t does not actually matter.
******************************. SRH and ADL are correlated. ADL2 = .5*physical + .5*mental.
regression /dependent = SRH1/enter ADL2.
**constant = 33.333.
**coeff = .667.
******************************. SRH and ADL are correlated. ADL3 = .25*physical + .75 * mental.
regression /dependent = SRH1/enter ADL3.
**constant = 42.857.
**coeff = .571.
******************************. SRH and ADL are correlated. ADL4 = .75*physical + .25 * mental.
regression /dependent = SRH1/enter ADL4.
**constant = 20.
**coeff = .8.
***** coefficients and constant and slope. regress SRH on ADL.
* SRH ADL.
* phys Mental constant slope
* 0 1 50 .5
* .25 .75 42.857 .571
* .5 .5 33.33 .667
* .75 .25 20 .8
* 1 0 0 1
* .
************* NOW I WILL USE DIFFERENT SLOPES FOR SRH AND ADL. hARDLY ANY CHANGE IN PHYSICAL WITH AGE.
get fILE='C:\aging\fRAILTY\frailty_data\simul_01.sav'.
compute physical = 100 - 1*age.
compute mental = 100 - 10*age.
Compute SRH1 = physical.
Compute ADL1 = mental.
compute ADL2 = .5*physical + .5*mental.
compute ADL3 = .25*physical + .75 * mental.
compute ADL4 = .75*physical + .25 * mental.
***********************. SRH and ADL conditionallADL independent. ADL1 = 0* PHYS + 1 * mental.
regression /dependent = SRH1/enter ADL1.
**constant = 90.
**coeff = .1 .
******************************. SRH and ADL are correlated. ADL3 = .25*physical + .75 * mental.
regression /dependent = SRH1/enter ADL3.
**constant = 87.097.
**coeff = .129.
******************************. SRH and ADL are correlated. ADL2 = .5*physical + .5*mental.
regression /dependent = SRH1/enter ADL2.
**constant = 81.818.
**coeff = .182.
******************************. SRH and ADL are correlated. ADL4 = .75*physical + .25 * mental.
regression /dependent = SRH1/enter ADL4.
**constant = 69.231.
**coeff = .308.
***** coefficients and constant and slope. regress SRH on ADL. hARDLY ANY CHANGE IN PHYSICAL WITH AGE.
* SRH ADL.
* phys Mental constant slope
* ADL1 0 1 90 .1
* ADL3 .25 .75 87.097 .129
* ADL2 .5 .5 81.818 .182
* ADL4 .75 .25 69.231 .308
* -- 1 0 0 1
* .
************* NOW I WILL USE DIFFERENT SLOPES FOR SRH AND ADL. hARDLY ANY CHANGE IN MENTAL WITH AGE.
get fILE='C:\aging\fRAILTY\frailty_data\simul_01.sav'.
compute physical = 100 - 5*age.
compute mental = 100 - 1*age.
Compute SRH1 = physical.
Compute ADL1 = mental.
compute ADL2 = .5*physical + .5*mental.
compute ADL3 = .25*physical + .75 * mental.
compute ADL4 = .75*physical + .25 * mental.
***********************. SRH and ADL conditionally independent. ADL1 = 0* PHYS + 1 * mental.
regression /dependent = SRH1/enter ADL1.
**constant = -400.
**coeff = 5 .
******************************. SRH and ADL are correlated. ADL3 = .25*physical + .75 * mental.
regression /dependent = SRH1/enter ADL3.
**constant = -150.
**coeff = 2.5.
******************************. SRH and ADL are correlated. ADL2 = .5*physical + .5*mental.
regression /dependent = SRH1/enter ADL2.
**constant = -66.67.
**coeff = 1.667..
******************************. SRH and ADL are correlated. ADL4 = .75*physical + .25 * mental.
regression /dependent = SRH1/enter ADL4.
**constant = -25.
**coeff =1.25.
***** coefficients and constant and slope. regress SRH on ADL.hARDLY ANY CHANGE IN MENTAL WITH AGE.
* SRH ADL.
* phys Mental constant slope
* ADL1 0 1 -400. 5
* ADL3 .25 .75 -150 2.5
* ADL2 .5 .5 -66.67 1.667
* ADL4 .75 .25 -25 1.25
* -- 1 0 0 1
* .