I did multiple imputations by using FCS. Now I have 5 imputed data. In my logistic regression, I have a categorical variable "systolic blood pressure" with 4 levels (0, 1, 2, 3) so I want to check the "Type 3 analysis effect" in PROC MIANALYZE to study the overall effect of systolic blood pressure.
By using PROC MIANALYZE I only get the effect for each level, but not a global one.
I have found someone used the TEST statement like test systolic_0, systolic_1, systolic_2/multi; But I am not sure whether that is the same as the "type 3 analysis of effect"?
Thank you for your help!
If you make systolic blood pressure to be categorical, then that's what SAS does (in every modeling procedure, not just MIANALYZE), it provides an estimate for each level.
If you want the "global effect", if I understand you properly, then the variable must not be categorical.
Thank you for your reply. But if I want to study the overall effect of systolic blood pressure (categorical) just like "Type 3 analysis of effect" table in Logistic regression. How can I do it?
@dandixu wrote:
Thank you for your reply. But if I want to study the overall effect of systolic blood pressure (categorical) just like "Type 3 analysis of effect" table in Logistic regression. How can I do it?
If I am understanding you properly, I don't think you can do this in PROC MIANALYZE. You could combine PROC MI with PROC GLM or PROC LOGISTIC to get a Type III analysis.
It would become a 3 step process. PROC MI to do the multiple imputation, PROC GLM (or other analysis procedure) with a BY _imputation_ statement and an OUTPUT statement for the parameter estimates and the X'X inverse matrix, and PROC MIANALYZE to tie all of this together. See
in the PROC MIANALYZE documentation.
SteveDenham
There isn't an easy way to get a combined test analogous to Type3 tests in Proc MIANALYZE. My suggestion would be to instead combine the Chi-Square statistics associated with the Type3 tests in LOGISTIC using Dr. Paul Allison's %COMBCHI macro.
I agree with SAS_Rob. Allison's %COMBCHI macro is excellent and easy to use. I have put it to great use. All you need is the chi-squared statistic and df from each of the imputations, and it uses a method by Li et al. (1991, I think), to construct an F test for global significance. You get an overall p-value as well.
The link given to the %COMBCHI macro is not being updated and still points to v1.0. There is an amended formula in version 2.1 of Dr. Paul Allison's %COMBCHI macro from 2007 linked from the "Resources" section of his bio at https://statisticalhorizons.com/our-instructors/paul-allison/
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.