<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to do multivariate analysis in SAS (proc logistic) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-multivariate-analysis-in-SAS-proc-logistic/m-p/69905#M3378</link>
    <description>I've been reading about multivariate analysis and proc logistic, and although there are some online descriptions of multivariate analysis there are few that describe how to do it in SAS.  I need something that takes me step by step through the output to determine what adjustments I need to make (i.e. When to exclude a given independent variable).  &lt;BR /&gt;
&lt;BR /&gt;
From what I've read and been told, it's my interpretation that if the p-value of any independent variable is above .25, I should exclude the variable with the highest p-value until all p-values are are below .25.  Is that a standard and accepted approach?&lt;BR /&gt;
&lt;BR /&gt;
Any help is greatly appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
    <pubDate>Thu, 26 May 2011 12:38:58 GMT</pubDate>
    <dc:creator>RyanD</dc:creator>
    <dc:date>2011-05-26T12:38:58Z</dc:date>
    <item>
      <title>How to do multivariate analysis in SAS (proc logistic)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-multivariate-analysis-in-SAS-proc-logistic/m-p/69905#M3378</link>
      <description>I've been reading about multivariate analysis and proc logistic, and although there are some online descriptions of multivariate analysis there are few that describe how to do it in SAS.  I need something that takes me step by step through the output to determine what adjustments I need to make (i.e. When to exclude a given independent variable).  &lt;BR /&gt;
&lt;BR /&gt;
From what I've read and been told, it's my interpretation that if the p-value of any independent variable is above .25, I should exclude the variable with the highest p-value until all p-values are are below .25.  Is that a standard and accepted approach?&lt;BR /&gt;
&lt;BR /&gt;
Any help is greatly appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Thu, 26 May 2011 12:38:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-multivariate-analysis-in-SAS-proc-logistic/m-p/69905#M3378</guid>
      <dc:creator>RyanD</dc:creator>
      <dc:date>2011-05-26T12:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to do multivariate analysis in SAS (proc logistic)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-multivariate-analysis-in-SAS-proc-logistic/m-p/69906#M3379</link>
      <description>Hard to answer any of this without a more detailed description of what your predictors are and what your dependent variables are, and what you hope to learn from this analysis.&lt;BR /&gt;
&lt;BR /&gt;
Also, based on my understanding of the word "multivariate", PROC LOGISTIC does not do multivariate analyses. To me, multivariate means multiple response variables, analyzed with respect to their joint (correlated) distributions. Maybe you are using this word to mean something than what I think it means?

Message was edited by: Paige</description>
      <pubDate>Thu, 26 May 2011 14:07:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-multivariate-analysis-in-SAS-proc-logistic/m-p/69906#M3379</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2011-05-26T14:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to do multivariate analysis in SAS (proc logistic)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-multivariate-analysis-in-SAS-proc-logistic/m-p/69907#M3380</link>
      <description>I'm probably using the work multivariate incorrectly.  &lt;BR /&gt;
&lt;BR /&gt;
This is the code I wrote to test the relationship of some binary (1=Yes, 2=No) independent variables on the dependent variable BreastFeeding (binary as well).&lt;BR /&gt;
&lt;BR /&gt;
proc logistic data=nbscrBirthVars;  &lt;BR /&gt;
	class NoCollege (ref="1") cesarean (ref="1") PreTerm (ref="1") LBW (ref="1") NICU (ref="1") TenStep (ref="1")/  param=ref;&lt;BR /&gt;
	model BreastFeeding (event="2")= NoCollege cesarean PreTerm LBW NICU TenStep; 	&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The output is below.  So, my understanding is that I would remove Macrosomia from the model because the Pr &amp;gt; Chisq in the Type 3 analysis is greater than 0.25 (0.6956).  Is that the standard way of determining what to remove?&lt;BR /&gt;
&lt;BR /&gt;
Thanks.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The LOGISTIC Procedure&lt;BR /&gt;
&lt;BR /&gt;
                Model Information&lt;BR /&gt;
&lt;BR /&gt;
Data Set                      WORK.NBSCRBIRTHVARS&lt;BR /&gt;
Response Variable             FormulaSupp&lt;BR /&gt;
Number of Response Levels     2&lt;BR /&gt;
Model                         binary logit&lt;BR /&gt;
Optimization Technique        Fisher's scoring&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Number of Observations Read      106701&lt;BR /&gt;
Number of Observations Used       99826&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
          Response Profile&lt;BR /&gt;
&lt;BR /&gt;
 Ordered     Formula          Total&lt;BR /&gt;
   Value     Supp         Frequency&lt;BR /&gt;
&lt;BR /&gt;
       1            1         18503&lt;BR /&gt;
       2            2         81323&lt;BR /&gt;
&lt;BR /&gt;
Probability modeled is FormulaSupp=2.&lt;BR /&gt;
&lt;BR /&gt;
NOTE: 6875 observations were deleted due to missing values for the response or explanatory variables.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
     Class Level Information&lt;BR /&gt;
&lt;BR /&gt;
                           Design&lt;BR /&gt;
Class          Value     Variables&lt;BR /&gt;
&lt;BR /&gt;
NoCollege      1                 0&lt;BR /&gt;
               2                 1&lt;BR /&gt;
&lt;BR /&gt;
cesarean       1                 0&lt;BR /&gt;
               2                 1&lt;BR /&gt;
&lt;BR /&gt;
PreTerm        1                 0&lt;BR /&gt;
               2                 1&lt;BR /&gt;
&lt;BR /&gt;
LBW            1                 0&lt;BR /&gt;
               2                 1&lt;BR /&gt;
&lt;BR /&gt;
NICU           1                 0&lt;BR /&gt;
               2                 1&lt;BR /&gt;
&lt;BR /&gt;
Macrosomia     1                 0&lt;BR /&gt;
               2                 1&lt;BR /&gt;
&lt;BR /&gt;
TenStep        1                 0&lt;BR /&gt;
               2                 1&lt;BR /&gt;
&lt;BR /&gt;
------------------------------------------------------------------------------------------------------&lt;BR /&gt;
The LOGISTIC Procedure&lt;BR /&gt;
&lt;BR /&gt;
                    Model Convergence Status&lt;BR /&gt;
&lt;BR /&gt;
         Convergence criterion (GCONV=1E-8) satisfied.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
         Model Fit Statistics&lt;BR /&gt;
&lt;BR /&gt;
                             Intercept&lt;BR /&gt;
              Intercept            and&lt;BR /&gt;
Criterion          Only     Covariates&lt;BR /&gt;
&lt;BR /&gt;
AIC           95717.853      93430.154&lt;BR /&gt;
SC            95727.364      93506.243&lt;BR /&gt;
-2 Log L      95715.853      93414.154&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
        Testing Global Null Hypothesis: BETA=0&lt;BR /&gt;
&lt;BR /&gt;
Test                 Chi-Square       DF     Pr &amp;gt; ChiSq&lt;BR /&gt;
&lt;BR /&gt;
Likelihood Ratio      2301.6993        7         &amp;lt;.0001&lt;BR /&gt;
Score                 2338.5007        7         &amp;lt;.0001&lt;BR /&gt;
Wald                  2265.3540        7         &amp;lt;.0001&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
          Type 3 Analysis of Effects&lt;BR /&gt;
&lt;BR /&gt;
                            Wald&lt;BR /&gt;
Effect          DF    Chi-Square    Pr &amp;gt; ChiSq&lt;BR /&gt;
&lt;BR /&gt;
NoCollege        1      462.7169        &amp;lt;.0001&lt;BR /&gt;
cesarean         1       47.0002        &amp;lt;.0001&lt;BR /&gt;
PreTerm          1       13.8791        0.0002&lt;BR /&gt;
LBW              1        3.6452        0.0562&lt;BR /&gt;
NICU             1      229.8353        &amp;lt;.0001&lt;BR /&gt;
Macrosomia       1        0.1531        0.6956&lt;BR /&gt;
TenStep          1     1166.5014        &amp;lt;.0001&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
               Analysis of Maximum Likelihood Estimates&lt;BR /&gt;
&lt;BR /&gt;
                                  Standard          Wald&lt;BR /&gt;
Parameter       DF    Estimate       Error    Chi-Square    Pr &amp;gt; ChiSq&lt;BR /&gt;
&lt;BR /&gt;
Intercept        1      0.7874      0.0964       66.7686        &amp;lt;.0001&lt;BR /&gt;
NoCollege  2     1      0.3688      0.0171      462.7169        &amp;lt;.0001&lt;BR /&gt;
cesarean   2     1      0.1185      0.0173       47.0002        &amp;lt;.0001&lt;BR /&gt;
PreTerm    2     1      0.1106      0.0297       13.8791        0.0002&lt;BR /&gt;
LBW        2     1      0.0706      0.0370        3.6452        0.0562&lt;BR /&gt;
NICU       2     1      0.5175      0.0341      229.8353        &amp;lt;.0001&lt;BR /&gt;
Macrosomia 2     1      0.0348      0.0890        0.1531        0.6956&lt;BR /&gt;
TenStep    2     1     -0.5757      0.0169     1166.5014        &amp;lt;.0001&lt;BR /&gt;
&lt;BR /&gt;
------------------------------------------------------------------------------------------------------&lt;BR /&gt;
                                                  9&lt;BR /&gt;
&lt;BR /&gt;
The LOGISTIC Procedure&lt;BR /&gt;
&lt;BR /&gt;
                Odds Ratio Estimates&lt;BR /&gt;
&lt;BR /&gt;
                        Point          95% Wald&lt;BR /&gt;
Effect               Estimate      Confidence Limits&lt;BR /&gt;
&lt;BR /&gt;
NoCollege  2 vs 1       1.446       1.398       1.495&lt;BR /&gt;
cesarean   2 vs 1       1.126       1.088       1.165&lt;BR /&gt;
PreTerm    2 vs 1       1.117       1.054       1.184&lt;BR /&gt;
LBW        2 vs 1       1.073       0.998       1.154&lt;BR /&gt;
NICU       2 vs 1       1.678       1.569       1.794&lt;BR /&gt;
Macrosomia 2 vs 1       1.035       0.870       1.233&lt;BR /&gt;
TenStep    2 vs 1       0.562       0.544       0.581&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Association of Predicted Probabilities and Observed Responses&lt;BR /&gt;
&lt;BR /&gt;
Percent Concordant          56.6    Somers' D    0.232&lt;BR /&gt;
Percent Discordant          33.3    Gamma        0.259&lt;BR /&gt;
Percent Tied                10.1    Tau-a        0.070&lt;BR /&gt;
Pairs                 1504719469    c            0.616</description>
      <pubDate>Thu, 26 May 2011 15:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-multivariate-analysis-in-SAS-proc-logistic/m-p/69907#M3380</guid>
      <dc:creator>RyanD</dc:creator>
      <dc:date>2011-05-26T15:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to do multivariate analysis in SAS (proc logistic)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-multivariate-analysis-in-SAS-proc-logistic/m-p/69908#M3381</link>
      <description>While I am not familiar with the advice to use 0.25 as your cutoff, I would use 0.05 as the cutoff. In any event, it seems reasonable to remove Macrosomia from the model.</description>
      <pubDate>Thu, 26 May 2011 15:09:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-multivariate-analysis-in-SAS-proc-logistic/m-p/69908#M3381</guid>
      <dc:creator>Paige</dc:creator>
      <dc:date>2011-05-26T15:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to do multivariate analysis in SAS (proc logistic)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-multivariate-analysis-in-SAS-proc-logistic/m-p/69909#M3382</link>
      <description>There are many stepwise variable-selection options in proc logistic. Check out the documentation for the model statement. But note: one should be cautious with all of these methods. Use them as an exploratory guide, not as a final model-selection method.Model selection (i.e., variable selection in a model) is a complex endeavor.</description>
      <pubDate>Fri, 27 May 2011 02:02:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-multivariate-analysis-in-SAS-proc-logistic/m-p/69909#M3382</guid>
      <dc:creator>lvm</dc:creator>
      <dc:date>2011-05-27T02:02:45Z</dc:date>
    </item>
  </channel>
</rss>

