CHAPTER 6: COMPUTATION OF STANDARD ERRORS



Chapter 6: Computation of Standard Errors

Box 6.1: SPSS syntax for the computation of 81 means

Box 6.2: SPSS syntax for the computation of the mean of HISEI and its respective standard error

Box 6.3: SPSS syntax for the computation of the SD of HISEI and its respective standard error per gender

Box 6.4: SPSS syntax for the computation of percentages and their respective standard error for gender

Box 6.5: SPSS syntax for the computation of percentages of grade per gender

Box 6.6: SPSS syntax for the regression analyses (1)

Box 6.7: SPSS syntax restructuring data after regression analyses

Box 6.8: SPSS syntax for the regression analyses (2)

Box 6.9: SPSS syntax for the correlation macro

Box 6.1: SPSS syntax for the computation of 81 means

[pic]

Box 6.2: SPSS syntax for the computation of the mean of HISEI and its respective standard error

[pic]

Box 6.3: SPSS syntax for the computation of the SD of HISEI and its respective standard error per gender

[pic]

Box 6.4: SPSS syntax for the computation of percentages and their respective standard error for gender

[pic]

Box 6.5: SPSS syntax for the computation of percentages of grade per gender

[pic]

Box 6.6: SPSS syntax for the regression analyses (1)

[pic]

Box 6.7: SPSS syntax restructuring data after regression analyses

[pic]

Box 6.8: SPSS syntax for the regression analyses (2)

[pic]

Box 6.9: SPSS syntax for the correlation macro

[pic]

-----------------------

get file 'C:\PISA\Data2003\INT_stui_2003.sav'.

Select if (cnt=’DEU’).

Weight by w_fstuwt.

means HISEI /CELL=mean.

Weight by w_fstr1.

means HISEI /CELL=mean.

Weight by w_fstr2.

means HISEI /CELL=mean.

*-------------------------.

Weight by w_fstr79.

means HISEI /CELL=mean.

Weight by w_fstr80.

means HISEI /CELL=mean.

get file 'C:\PISA\Data2003\INT_stui_2003.sav'.

Select if (cnt='DEU').

Save outfile=’c:\PISA\Data2003\DEU.sav’.

* DEFINE MACRO.

Include file ‘C:\PISA\macros\mcr_SE_univ.sps’.

* CALL MACRO.

univar nrep = 80/

stat = mean/

dep = hisei/

grp = cnt/

wgt = w_fstuwt/

rwgt = w_fstr/

cons = 0.05/

infile = ’c:\PISA\Data2003\DEU.sav’.

get file 'C:\PISA\Data2003\INT_stui_2003.sav'.

Select if cnt=’DEU’.

* Selecting only non missing data is optional.

Select if (not missing(st03q01)).

Save outfile=’c:\PISA\Data2003\DEU.sav’.

* DEFINE MACRO.

Include file ‘C:\PISA\macros\mcr_SE_univ.sps’.

* CALL MACRO.

univar nrep = 80/

stat = sd/

dep = hisei/

grp = cnt st03q01/

wgt = w_fstuwt/

rwgt = w_fstr/

cons = 0.05/

infile = ’c:\PISA\Data2003\DEU.sav’.

get file 'C:\PISA\Data2003\INT_stui_2003.sav'.

Select if cnt=’DEU’.

* Selecting only non missing data is optional.

Select if (not missing(st03q01)).

Save outfile=’c:\PISA\Data2003\DEU.sav’.

* DEFINE MACRO.

include file "C:\PISA\macros\mcr_SE_GrpPct.sps".

* CALL MACRO.

GRPPCT nrep = 80/

within = cnt/

grp = st03q01/

wgt = w_fstuwt/

rwgt = w_fstr/

cons = 0.05/

infile = ’c:\PISA\Data2003\DEU.sav’/.

get file 'C:\PISA\Data2003\INT_stui_2003.sav'.

Select if cnt='DEU'.

Select if (not missing(st03q01) & not missing(st01q01)).

Save outfile='c:\PISA\Data2003\DEU.sav'.

* DEFINE MACRO.

include file "C:\PISA\macros\mcr_SE_GrpPct.sps".

* CALL MACRO.

GRPPCT nrep = 80/

within = cnt st03q01/

grp = st01q01/

wgt = w_fstuwt/

rwgt = w_fstr/

cons = 0.05/

infile = 'C:\PISA\Data2003\DEU.sav'/.

get file 'C:\PISA\Data2003\INT_stui_2003.sav'.

select if (cnt='DEU' & not missing(st03q01)).

compute gender=0.

if (st03q01=1) gender=1.

save outfile='c:\PISA\Data2003\DEU.sav'.

* DEFINE MACRO.

include file='C:\PISA\macros\mcr_SE_reg.sps'.

* CALL MACRO.

REGnoPV nrep = 80/

ind = hisei gender/

dep = bsmj/

grp = cnt/

wgt = w_fstuwt/

rwgt = w_fstr/

cons = 0.05/

infile = 'c:\PISA\Data2003\DEU.sav'/.

Recode IND ('HISEI'='b1')('gender'='b2').

sort cases by cnt ind.

Casestovars /id=cnt /index=ind /groupby=index.

get file 'C:\PISA\Data2003\INT_stui_2003.sav'.

select if (cnt='DEU' & not missing(st03q01)).

compute gender=0.

if (st03q01=1) gender=1.

save outfile='c:\PISA\Data2003\DEU.sav'.

* DEFINE MACRO.

include file='C:\PISA\macros\mcr_SE_reg.sps'.

* CALL MACRO.

REGnoPV nrep = 80/

ind = hisei/

dep = bsmj/

grp = cnt gender/

wgt = w_fstuwt/

rwgt = w_fstr/

cons = 0.05/

infile = 'c:\PISA\Data2003\DEU.sav'/.

get file 'C:\PISA\Data2003\INT_stui_2003.sav'.

select if (cnt='DEU').

save outfile='c:\PISA\Data2003\DEU.sav'.

* DEFINE MACRO.

include file "c:\pisa\macros\mcr_SE_cor.sps".

* CALL MACRO.

CORnoPV nrep = 80/

var1 = hisei/

var2 = bsmj/

grp = cnt/

wgt = w_fstuwt/

rwgt = w_fstr/

cons = 0.05/

infile = 'c:\PISA\Data2003\DEU.sav'/.

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download