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.

182 Fitting Generalized Linear Models Chapter 6<br />

Examples of Generalized Linear Models<br />

Poisson: V(μ) = μ<br />

Exponential: V(μ) = μ 2<br />

When you select Binomial as the distribution, the response variable must be specified in one of the<br />

following ways:<br />

• If your data is not summarized as frequencies of events, specify a single binary column as the response.<br />

The response column must be nominal. If your data is summarized as frequencies of events, specify a<br />

single binary column as the response, along with a frequency variable in the Freq role. The response<br />

column must be nominal, <strong>and</strong> the frequency variable gives the count of each response level.<br />

• If your data is summarized as frequencies of events <strong>and</strong> trials, specify two continuous columns in this<br />

order: a count of the number of successes, <strong>and</strong> a count of the number of trials. Alternatively, you can<br />

specify the number of failures instead of successes.<br />

Model Selection <strong>and</strong> Deviance<br />

An important aspect of generalized linear modeling is the selection of explanatory variables in the model.<br />

Changes in goodness-of-fit statistics are often used to evaluate the contribution of subsets of explanatory<br />

variables to a particular model. The deviance, defined to be twice the difference between the maximum<br />

attainable log likelihood <strong>and</strong> the log likelihood at the maximum likelihood estimates of the regression<br />

parameters, is often used as a measure of goodness of fit. The maximum attainable log likelihood is achieved<br />

with a model that has a parameter for every observation. The following table displays the deviance for each<br />

of the probability distributions available in JMP.<br />

Table 6.2 Deviance Functions<br />

Distribution<br />

normal<br />

Poisson<br />

binomial a<br />

exponential<br />

Deviance<br />

w i<br />

( y i<br />

– μ i<br />

) 2<br />

i<br />

y i <br />

2w i<br />

y i<br />

log----<br />

– ( y<br />

μ i<br />

– μ i<br />

)<br />

i <br />

i<br />

y i <br />

1 – y<br />

2 w i<br />

m i<br />

y i ----<br />

i <br />

log + ( 1 – y<br />

μ i<br />

) log-------------<br />

<br />

i <br />

1 – μ i <br />

i<br />

y i y 2 w i ----<br />

i<br />

– μ i <br />

– log + --------------<br />

<br />

μ i μ i <br />

i<br />

a. In the binomial case, y i = r i /m i , where r i is a binomial count <strong>and</strong> m i is the binomial number of trials<br />

parameter

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

Saved successfully!

Ooh no, something went wrong!