turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Stat Procs
- /
- Proc GENMOD

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

07-30-2010 02:55 PM

Does proc GENMOD iterate only once when you use the option CORR=FIXED or CORR=USER in the REPEATED statement?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

07-30-2010 07:21 PM

Somehow, methinks that the question you ask is not the real question that you have. You are probably observing more than a single iteration and thinking "If I have specified a correlation structure, then why does the GENMOD procedure require k>1 iterations to fit the model? Shouldn't it use the specified correlation and return estimates immediately without iterating?"

Is that really the question that you are trying to address? If so, then consider fitting a simple logistic regression model in which observations do not have any correlation structure. Such a model will almost always require more than one iteration to complete. The code below demonstrates:

data test;

do i=1 to 100;

x = rannor(1234579);

eta = -.3 + 0.7*x;

p = 1 / (1 + exp(-eta));

y = ranbin(1234579,1,p);

output;

end;

run;

proc genmod data=test;

model y = x / dist=bin itprint;

run;

If the simple logistic regression model requires multiple iterations, then would you expect a GEE model in which you specify the working correlation matrix to fit in a single iteration?

If you specified the working correlation matrix and you specified that the response followed a normal distribution, then you would expect the GEE to go to the final solution in only a single iteration. For all other distributions, you would not expect to achieve the fit in a single iteration because the model is nonlinear with respect to the parameters expressing the mean function.

Is that really the question that you are trying to address? If so, then consider fitting a simple logistic regression model in which observations do not have any correlation structure. Such a model will almost always require more than one iteration to complete. The code below demonstrates:

data test;

do i=1 to 100;

x = rannor(1234579);

eta = -.3 + 0.7*x;

p = 1 / (1 + exp(-eta));

y = ranbin(1234579,1,p);

output;

end;

run;

proc genmod data=test;

model y = x / dist=bin itprint;

run;

If the simple logistic regression model requires multiple iterations, then would you expect a GEE model in which you specify the working correlation matrix to fit in a single iteration?

If you specified the working correlation matrix and you specified that the response followed a normal distribution, then you would expect the GEE to go to the final solution in only a single iteration. For all other distributions, you would not expect to achieve the fit in a single iteration because the model is nonlinear with respect to the parameters expressing the mean function.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

08-17-2010 01:20 PM

Let me try to clarify my question. I want to give GENMOD an initial working correlation matrix in the REPEATED statement, and I want it to update it using the GEE algorithm. Unfortunately, it seems that is I use the USER or FIXED options then GENMOD does not update the working correlation matrix.

If I use the autoregressive (AR) or unstructured (UNSTR) options in the REPEATED statement, then GENMOD would use the Pearson residuals and coefficients to estimate the working correlation matrix, recalculate the covariance of the parameter estimates, recalculate the coefficients, recalculate the Pearson residuals, recalculate the working correlation matrix, and so on until the convergence criterion was met. This means the working correlation matrix would change from one GEE iteration to the next. However, that does not happen when the USER or FIXED options is used.

If I use the autoregressive (AR) or unstructured (UNSTR) options in the REPEATED statement, then GENMOD would use the Pearson residuals and coefficients to estimate the working correlation matrix, recalculate the covariance of the parameter estimates, recalculate the coefficients, recalculate the Pearson residuals, recalculate the working correlation matrix, and so on until the convergence criterion was met. This means the working correlation matrix would change from one GEE iteration to the next. However, that does not happen when the USER or FIXED options is used.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

08-31-2010 03:05 PM

That is correct -- GENMOD does not estimate/update the correlation matrix when TYPE=FIXED or USER is specified.