14.03.2014 Views

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

Modeling and Multivariate Methods - SAS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Appendix A Statistical Details 683<br />

Power Calculations<br />

Discriminant Analysis<br />

The distance from an observation to the multivariate mean of the ith group is the Mahalanobis distance,<br />

D 2 , <strong>and</strong> computed as<br />

where<br />

In saving discriminant columns, N is the number of observations <strong>and</strong> M is the identity matrix.<br />

The Save Discrim comm<strong>and</strong> in the popup menu on the platform title bar saves discriminant scores with<br />

their formulas as columns in the current data table. SqDist[0] is a quadratic form needed in all the distance<br />

calculations. It is the portion of the Mahalanobis distance formula that does not vary across groups.<br />

SqDist[i] is the Mahalanobis distance of an observation from the ith centroid. SqDist[0] <strong>and</strong> SqDist[i] are<br />

calculated as<br />

<strong>and</strong><br />

D 2 = ( y – y i )'S – 1 ( y–<br />

y i ) = y'S – 1 y – 2y'S – 1 y i + y i 'S – 1 y i<br />

S =<br />

------------ E<br />

N – 1<br />

SqDist[0] =<br />

SqDist[i] = SqDist[0] -2y'S – 1 y i + y i 'S – 1 y i<br />

Assuming that each group has a multivariate normal distribution, the posterior probability that an<br />

observation belongs to the ith group is<br />

Prob[i] = ----------------------------<br />

exp( Dist[i] )<br />

Prob[ 0]<br />

where<br />

Prob[0] =<br />

<br />

y'S – 1 y<br />

e – 0.5Dist[i]<br />

Power Calculations<br />

The next sections give formulas for computing LSV, LSN, power, <strong>and</strong> adjusted power.<br />

Computations for the LSV<br />

For one-degree-freedom tests, the LSV is easy to calculate. The formula for the F-test for the hypothesis<br />

Lβ = 0 is:<br />

( Lb)' ( LX'X ( ) – 1 L' ) – 1<br />

( Lb) ⁄ r<br />

F = ------------------------------------------------------------------------<br />

s 2

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

Saved successfully!

Ooh no, something went wrong!