****** Syntax Den 2 ****************************. GET FILE='C:\1SPSS\HH2.sav'. freq vars=all. **** opisatelni h-ki ***. *** chestoti ***************. freq vars= RB090 Age PE010. **** grupa ot promenlivi *******. freq vars= RB090 to Q1 P95. ****** sredna aritmetichna ****. desc vars= Age P3 P31_1. DESCRIPTIVES VARIABLES=Age P3 P31_1 /STATISTICS=MEAN STDDEV MIN MAX. ***** mediana i kvartili ****. FREQUENCIES VARIABLES=Age P3 P31_1 /NTILES=4 /NTILES=3 /STATISTICS=MEAN MEDIAN /ORDER=ANALYSIS. *************************************. **** sazdavane na nova promenliva *******. compute x1=5. freq vars=x1. ****** sredni po grupi *******. **** dispersionen analiz ******. means p3 by rb090 /stats=anova. MEANS TABLES=P3 BY RB090 /CELLS MEAN COUNT STDDEV /STATISTICS ANOVA. ************************************. **** RZ po grad/selo ********************. **** chetene na danni ot Excel ******. **** chetene na parvata chast s danni ***. GET DATA /TYPE=XLS /FILE='C:\1SPSS\Danni99.xls' /SHEET=name 'data1' /CELLRANGE=full /READNAMES=off /ASSUMEDSTRWIDTH=32767. DATASET NAME $DataSet WINDOW=FRONT. **** zapis na dannite kato SPSS file **************. SAVE OUTFILE='C:\1SPSS\Danni99_1.sav' /COMPRESSED. **** chetene na novia file ***********. get FILE='C:\1SPSS\Danni99_1.sav'. freq vars=all. **** chetene na vtorata chast s danni ***. GET DATA /TYPE=XLS /FILE='C:\1SPSS\Danni99.xls' /SHEET=name 'data2' /CELLRANGE=full /READNAMES=off /ASSUMEDSTRWIDTH=32767. DATASET NAME $DataSet WINDOW=FRONT. **** zapis na dannite kato SPSS file **************. SAVE OUTFILE='C:\1SPSS\Danni99_2.sav' /COMPRESSED. **** chetene na novia file ***********. freq vars=all. ***************************************************. ***** prochitane na edin goljam file *******. **** file s predpriatia *****. GET DATA /TYPE=XLS /FILE='C:\1SPSS\EN2.xls' /SHEET=name 'Enter' /CELLRANGE=full /READNAMES=on /ASSUMEDSTRWIDTH=32767. DATASET NAME $DataSet WINDOW=FRONT. freq vars=all. *****************************. ***** Tova kursa po SPSS Den 1 **************************. **** chetene na file s danni ********************. GET FILE='C:\1SPSS\HH2.sav'. DATASET NAME $DataSet WINDOW=FRONT. *** chestoti **********. freq vars=all. DATASET ACTIVATE $DataSet. FREQUENCIES VARIABLES=RB090 /ORDER=ANALYSIS. *** sazdavane na nov file s danni s izbrani promenlivi ***. save outFILE='C:\1SPSS\keep1.sav' /keep= ID OBL RB090 Age. SAVE OUTFILE='C:\1SPSS\keep2.sav' /DROP=DomN Loc Rel PB190 PB200 RB210 PE010 PE040 PE030 Q1 Q7 Q23 P1 P3 P6 P9 P25 P31_1 P31_2 P32 P33 P36 P95 /COMPRESSED. **** chetem novite file-ove ***. GET FILE='C:\1SPSS\keep1.sav'. DATASET NAME $DataSet WINDOW=FRONT. freq vars=all. ********* sazdavane na nov file s 5 promenlivi ********. *** vzemam originalnia file **********************. GET FILE='C:\1SPSS\HH2.sav'. **** zapis na nov file s 5 promenlivi ****. SAVE OUTFILE='C:\1SPSS\domat1.sav' /keep= ID Q1 Q7 P1 P33. ***** otvarjam novia file *****. get FILE='C:\1SPSS\domat1.sav'. freq vars=all. ******************************. FREQUENCIES VARIABLES=Age P3 P31_1 /NTILES=4 /NTILES=3 /STATISTICS=MEAN MEDIAN /ORDER=ANALYSIS.