Sunday, February 11, 2007

SPSS+Python: First script

The below scripts reads Excel file. Than the python program pairs variables, that will be compared using paired t-test.
GET DATA
/TYPE=XLS
/FILE='/Users/marcin/Desktop/myPublicationDataAnalysis_newAniso/fs_Lud_byMarcin10/VOT/Sta_fs.xls'
/SHEET=name 'Lat'
/CELLRANGE=full
/READNAMES=off
/ASSUMEDSTRWIDTH=32767.

DATASET NAME DataSet1 WINDOW=FRONT.

BEGIN PROGRAM.
import spss
from spss import Submit

ScalesC=['V'+str(i+1) for i in range(1,10)]
ScalesOA=['V'+str(i+11) for i in range(1,10)]

for v in zip(ScalesC,ScalesOA):
c= "T-TEST PAIRS="+v[0]+" WITH "+v[1]+" (PAIRED) /CRITERIA=CI(.9500) /MISSING=ANALYSIS."
Submit(c)
END PROGRAM.

Friday, February 09, 2007

Samsung Digimax S500 and Sony Cyper-shot 6.0

Rubbish!!!Rubbish!!!!
Another Korean junk that I have bought. I will never again buy anything that comes from Korea. Before I had problems with DVD player from LG, and now, after taking only few pictures
with Samsung digital camera it stop working.
Now when I want to take a picture, camera just switches off, and that's it. Sometimes I can make one picture, but second one is not possible. This happens only when flash is used, so I reckon that flash lite causes some electric overload, and camera switches off.

Why today only junk is created? And it is not only Korean. My friend bought Sony Cyber-shot 6.0M and after one month it was broken. The lens was stacked in its shield.


Sony is from Japan, Samsung and LG (my former post about LG DNX-190 UH DVD player) are from Korea, so what they have in common? They are made in China.