14.03.2014 Views

Scripting Guide - SAS

Scripting Guide - SAS

Scripting Guide - SAS

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Chapter 10 <strong>Scripting</strong> Platforms 325<br />

Additional Notes<br />

result = a[j] + b[j]*xx + c[j]*xx^2 + d[j]*xx^3<br />

Fit Model Effects<br />

Effects in the model can be more than just a list of columns, and have a specialized syntax:<br />

Effect( list of effects, list of effect macros, or both lists)<br />

An effect can be a column name, a crossing of several column names with asterisk (*) notation, or nested<br />

columns specified with subscript bracket ([ ]) notation. Additional effect options can appear after an<br />

ampersand (&) character. Some examples:<br />

A, // a column name alone is a main effect<br />

A*B, // a crossed effect, interaction, or polynomial<br />

A[B], // nested<br />

A*B[C D], // crossed and nested<br />

effect&Random, // a random effect<br />

effect&LogVariance, // a variance model term<br />

effect&RS,<br />

// a response surface term<br />

effect&Mixture, // for an effect participating in a mixture<br />

effect&Excluded, // for an effect that with no model parameters<br />

effect&Knotted, // for a knotted spline effect<br />

Effect macros are:<br />

Factorial( columns ), // for a full factorial design<br />

Factorial2( columns ), // for up to 2nd-degree interactions only<br />

Polynomial( columns ), // for a 2nd-degree polynomial only<br />

To show the launch window and fit the model at the same time, include Run Model in the script. To show<br />

the launch window but not immediately fit the model, use Add Script instead of Run Model.<br />

Note: When you select Analyze > Fit Model in a data table that has a script named Model (or model), the<br />

launch window is filled in based on the script.<br />

Responses and Effects for MANOVA<br />

To address an individual response function analysis, use a subscripted Response:<br />

manovaObj

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

Saved successfully!

Ooh no, something went wrong!