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.

Chapter 6 Fitting Generalized Linear Models 183<br />

Examples<br />

The Pearson chi-square statistic is defined as<br />

X 2 w i<br />

( y i<br />

– μ i<br />

) 2<br />

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

V( μ i<br />

)<br />

i<br />

where y i is the i th response, μ i is the corresponding predicted mean, V(μ i ) is the variance function, <strong>and</strong> w i is<br />

a known weight for the i th observation. If no weight is known, w i = 1 for all observations.<br />

One strategy for variable selection is to fit a sequence of models, beginning with a simple model with only<br />

an intercept term, <strong>and</strong> then include one additional explanatory variable in each successive model. You can<br />

measure the importance of the additional explanatory variable by the difference in deviances or fitted log<br />

likelihoods between successive models. Asymptotic tests computed by JMP enable you to assess the<br />

statistical significance of the additional term.<br />

Examples<br />

The following examples illustrate how to use JMP’s generalized linear models platform.<br />

Poisson Regression<br />

This example uses data from a study of nesting horseshoe crabs. Each female crab had a male crab resident<br />

in her nest. This study investigated whether there were other males, called satellites, residing nearby. The<br />

data set CrabSatellites.jmp contains a response variable listing the number of satellites, as well as variables<br />

describing the female crab’s color, spine condition, weight, <strong>and</strong> carapace width. The data are shown in<br />

Figure 6.2.<br />

Figure 6.2 Crab Satellite Data

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

Saved successfully!

Ooh no, something went wrong!