27.03.2013 Views

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SPSS® 12.0 Command Syntax Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

GLM: Univariate 655<br />

• If you specify an effect on RANDOM, higher-order effects containing the specified effect<br />

(excluding any effects containing covariates) are automatically treated as random effects.<br />

• The keyword INTERCEPT and effects containing covariates are not allowed on this subcommand.<br />

• The RANDOM subcommand cannot be used if there is any within-subjects factor in the<br />

model (that is, RANDOM cannot be specified if WSFACTOR is specified).<br />

• When the RANDOM subcommand is used, the appropriate error terms for the hypothesis<br />

testing of all effects in the model are automatically computed and used.<br />

• More than one RANDOM subcommand is allowed. The specifications are accumulated.<br />

Example<br />

GLM DEP BY A B<br />

/RANDOM = B<br />

/DESIGN = A,B, A*B.<br />

• In the example, effects B and A*B are considered as random effects. Notice that if only<br />

effect B is specified in the RANDOM subcommand, A*B is automatically considered as a<br />

random effect.<br />

• The hypothesis testing for each effect (A, B, and A*B) in the design will be carried out<br />

using the appropriate error term, which is calculated automatically.<br />

REGWGT Subcommand<br />

The only specification on REGWGT is the name of the variable containing the weights to be<br />

used in estimating a weighted least-squares model.<br />

• Specify a numeric weight variable name following the REGWGT subcommand. Only<br />

observations with positive values in the weight variable will be used in the analysis.<br />

• If more than one REGWGT subcommand is specified, only the last one is in effect.<br />

Example<br />

GLM OUTCOME BY TREATMNT<br />

/REGWGT WT.<br />

• The procedure performs a weighted least-squares analysis. The variable WT is used as the<br />

weight variable.<br />

METHOD Subcommand<br />

METHOD controls the computational aspects of the GLM analysis. You can specify one of four<br />

different methods for partitioning the sums of squares. If more than one METHOD subcommand<br />

is specified, only the last one is in effect.<br />

SSTYPE(1) Type I sum-of-squares method. The Type I sum-of-squares method is also<br />

known as the hierarchical decomposition of the sum-of-squares method.<br />

Each term is adjusted only for the terms that precede it on the DESIGN subcommand.<br />

Under a balanced design, it is an orthogonal decomposition, and<br />

the sums of squares in the model add up to the total sum of squares.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!