<?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 Re: proc factor with polychoric correlation matrix: yields errors in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333488#M17611</link>
    <description>&lt;P&gt;Since you are in a hurry, I will say some things without completely checking them. Otherwise I would not be able to post until tomorrow.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the problem is the DATA step in which you are extracting _TYPE_+"CORR". You do NOT want to&amp;nbsp;modify the matrix that is produced by PROC CORR. &amp;nbsp;PROC FACTOR expects to receive a TYPE=CORR data set, and it uses the _TYPE_ variable to reconstruct the important statistics that it needs. I think that what is happening is that PROC FACTOR is interpreting the data as being raw data, rather than a pre-computed correlation matrix.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 17:25:15 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2017-02-16T17:25:15Z</dc:date>
    <item>
      <title>proc factor with polychoric correlation matrix: yields errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333448#M17609</link>
      <description>&lt;P&gt;&lt;FONT face="helvetica" size="3"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica" size="3"&gt;I resorted to polychoric correlation matrix as my variables are all either scale-based (likert-scaled) or dichotonomous.I have 103 variables in total&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica" size="3"&gt;I used the OUTPLC= option &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc corr data=survey.mydata outplc=survey.pchor_dm_new;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q1&amp;nbsp;&amp;nbsp; Q3&amp;nbsp;&amp;nbsp; Q4A&amp;nbsp; Q4B&amp;nbsp; Q4C&amp;nbsp; Q4D&amp;nbsp; Q4E&amp;nbsp; Q4F&amp;nbsp; Q4G&amp;nbsp; Q4H&amp;nbsp; Q4I&amp;nbsp; Q4J&amp;nbsp; Q5A&amp;nbsp; Q5B &lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q5C&amp;nbsp; Q5D&amp;nbsp; Q5E&amp;nbsp; Q5F&amp;nbsp; Q5G&amp;nbsp; Q5H&amp;nbsp; Q6A&amp;nbsp; Q6B&amp;nbsp; Q6C&amp;nbsp; Q6D&amp;nbsp; Q6E&amp;nbsp; Q6F&amp;nbsp; Q7&amp;nbsp;&amp;nbsp; Q10A&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q10B Q10C Q10D Q10E&amp;nbsp;&amp;nbsp; &amp;nbsp;Q10F Q10G Q11A Q11B Q11C Q11D Q11E Q11F Q11G Q13 &amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q15A Q15B Q15C Q15D Q16A Q16B Q16C Q17&amp;nbsp; Q18A Q18B Q18C Q18D Q19A Q19B&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q19C Q20A Q20B Q20C&amp;nbsp;&amp;nbsp; &amp;nbsp;Q21A Q21B Q21C Q21D Q21E Q21F Q21G Q21H Q21I Q21J&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q22&amp;nbsp;&amp;nbsp; &amp;nbsp; Q23&amp;nbsp; Q24A Q24B&amp;nbsp;&amp;nbsp; &amp;nbsp;Q24C Q24D Q24E Q24F Q24G Q24H Q24I Q25&amp;nbsp; Q26A Q26B&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q26C Q26D Q26E Q26F&amp;nbsp;&amp;nbsp; &amp;nbsp;Q26G Q26H Q26I Q26J Q26K Q27&amp;nbsp; Q28&amp;nbsp; Q30&amp;nbsp; Q31&amp;nbsp; Q32A&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Q32B Q32C Q32D Q32E&amp;nbsp;&amp;nbsp; &amp;nbsp;Q32F;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica" size="3"&gt;Followed by filtering out the means, std. deviation and no. of Obs. information to obtain a 'true' correlation matrix.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="helvetica" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data survey.corrMatrix2;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set survey.pchor_dm;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where _type_='CORR';&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; drop _type_ _name_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;I then attempted to run a Principal Axis Factoring and initially got the errors:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="2"&gt;Correlation matrix is Singular&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="2"&gt;Communality greater than 1.0&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;title1 'Factor Analysis of Customer Satisfaction Survey 2016';&lt;BR /&gt;title2 'PAF method with Polychoric Correlation Coefficients';&lt;BR /&gt;ods graphics on;&lt;BR /&gt;proc factor data=survey.corrMatrix&lt;BR /&gt;method=prinit&lt;BR /&gt;priors=smc&lt;BR /&gt;plot=scree heywood rotate=promax /* promax can be tried too */&lt;BR /&gt;;&lt;BR /&gt;var&lt;BR /&gt;Q1&amp;nbsp;&amp;nbsp; Q3&amp;nbsp;&amp;nbsp; Q4A&amp;nbsp; Q4B&amp;nbsp; Q4C&amp;nbsp; Q4D&amp;nbsp; Q4E&amp;nbsp; Q4F&amp;nbsp; Q4G&amp;nbsp; Q4H&amp;nbsp; Q4I&amp;nbsp; Q4J&amp;nbsp; Q5A&amp;nbsp; Q5B&lt;BR /&gt;Q5C&amp;nbsp; Q5D&amp;nbsp; Q5E&amp;nbsp; Q5F&amp;nbsp; Q5G&amp;nbsp; Q5H&amp;nbsp; Q6A&amp;nbsp; Q6B&amp;nbsp; Q6C&amp;nbsp; Q6D&amp;nbsp; Q6E&amp;nbsp; Q6F&amp;nbsp; Q7&amp;nbsp;&amp;nbsp; Q10A&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;Q10B Q10C Q10D Q10E&amp;nbsp;&amp;nbsp; &amp;nbsp;Q10F Q10G Q11A Q11B Q11C Q11D Q11E Q11F Q11G Q13 &amp;nbsp;&lt;BR /&gt;Q15A Q15B Q15C Q15D Q16A Q16B Q16C Q17&amp;nbsp; Q18A Q18B Q18C Q18D Q19A Q19B&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;Q19C Q20A Q20B Q20C&amp;nbsp;&amp;nbsp; &amp;nbsp;Q21A Q21B Q21C Q21D Q21E Q21F Q21G Q21H Q21I Q21J&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;Q22&amp;nbsp;&amp;nbsp; &amp;nbsp; Q23&amp;nbsp; Q24A Q24B&amp;nbsp;&amp;nbsp; &amp;nbsp;Q24C Q24D Q24E Q24F Q24G Q24H Q24I Q25&amp;nbsp; Q26A Q26B&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;Q26C Q26D Q26E Q26F&amp;nbsp;&amp;nbsp; &amp;nbsp;Q26G Q26H Q26I Q26J Q26K Q27&amp;nbsp; Q28&amp;nbsp; Q30&amp;nbsp; Q31&amp;nbsp; Q32A&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;Q32B Q32C Q32D Q32E&amp;nbsp;&amp;nbsp; &amp;nbsp;Q32F;&lt;BR /&gt;run;&lt;BR /&gt;ods graphics off;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;I then used the option HEYWOOD option and get the followign errors:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;WARNING: The number of observations is not greater than the number of variables.&lt;BR /&gt;ERROR: Correlation matrix is singular.&lt;BR /&gt;NOTE: Prior communality estimates will be 1.0.&lt;BR /&gt;NOTE: 102 factors will be retained by the MINEIGEN criterion.&lt;BR /&gt;WARNING: Too many factors for a unique solution.&lt;BR /&gt;NOTE: Convergence criterion satisfied.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Could someone please help me with what I'm doign wrong? I really need to get this done today&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Regards&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;Mari&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 15:19:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333448#M17609</guid>
      <dc:creator>mszommer</dc:creator>
      <dc:date>2017-02-21T15:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: proc factor with polychoric correlation matrix: yields errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333488#M17611</link>
      <description>&lt;P&gt;Since you are in a hurry, I will say some things without completely checking them. Otherwise I would not be able to post until tomorrow.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think the problem is the DATA step in which you are extracting _TYPE_+"CORR". You do NOT want to&amp;nbsp;modify the matrix that is produced by PROC CORR. &amp;nbsp;PROC FACTOR expects to receive a TYPE=CORR data set, and it uses the _TYPE_ variable to reconstruct the important statistics that it needs. I think that what is happening is that PROC FACTOR is interpreting the data as being raw data, rather than a pre-computed correlation matrix.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 17:25:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333488#M17611</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-02-16T17:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: proc factor with polychoric correlation matrix: yields errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333507#M17613</link>
      <description>&lt;P&gt;Thank you for the prompt response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did run the PROC Factor with the matrix generated by Proc Corr and get the followign error:&lt;BR /&gt;ERROR: Correlation matrix is singular.&lt;BR /&gt;NOTE: Prior communality estimates will be 1.0.&lt;BR /&gt;NOTE: 93 factors will be retained by the PROPORTION criterion.&lt;BR /&gt;WARNING: Too many factors for a unique solution.&lt;BR /&gt;ERROR: Maximum iterations exceeded&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is the correlation matrix is singular due to too many variables ans too few cases of data (I had 53000+ observations)? Or is it because I have too many highly correlated items in my matrix?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help (further)? If I cannt generate sensible results today then it makes sense to ask for a days time more.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mari&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 17:57:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333507#M17613</guid>
      <dc:creator>mszommer</dc:creator>
      <dc:date>2017-02-16T17:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: proc factor with polychoric correlation matrix: yields errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333526#M17614</link>
      <description>&lt;P&gt;With 53K observations, I wouldn't expect collinearities in 103 ordinal variables. Are you using dummy variables instead of ordinal variable for the data?&amp;nbsp;For example, if a variable X has values 1, 2 and 3, you will get a singular matrix if you replace X with three dummy variables X1=(X=1), X2=(X=2), and X3=(X=3). &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure in the PROC CORR that you are using the original ordinal variable, where each variable corresponds to one question.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 18:42:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333526#M17614</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-02-16T18:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: proc factor with polychoric correlation matrix: yields errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333544#M17616</link>
      <description>No, I'm not. Each ordinal variable corresponds to one question. I used 1=yes and 0=no for multi-response (nominal) questions. So, if Q5 had 5 options and a respondent could select more than 1 option, I coded it 5 questions, namely Q5a, Q5b, Q5c, Q5d and Q5e</description>
      <pubDate>Thu, 16 Feb 2017 19:23:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333544#M17616</guid>
      <dc:creator>mszommer</dc:creator>
      <dc:date>2017-02-16T19:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: proc factor with polychoric correlation matrix: yields errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333571#M17617</link>
      <description>&lt;P&gt;My guess&amp;nbsp;is that you have a polychoric matrix that is not positive definite. &lt;A href="http://blogs.sas.com/content/iml/2012/09/12/when-is-a-correlation-matrix-not-a-correlation-matrix.html" target="_self"&gt;This can happen for various reasons, including the presence of missing values.&lt;/A&gt;&amp;nbsp;If you have missing values, you could try adding the NOMISS option to the PROC CORR statement (as discussed in the article) to&amp;nbsp;perform listwise deletion of missing values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It could also indicate collinearity. The REG procedure can check for collinearity among the Q variables. &amp;nbsp;You need to "invent" response variable and then use the COLLIN option on the MODEL statement, as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Check;
set Have;
Y = rand("Normal");
run;

proc reg data=Check plots=none;
model Y = Q1-Q3 / COLLIN;  /* &amp;lt;= put all "Q" variables here */
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Any variable that gets 0 for a parameter estimate is collinear with others. You will also get a NOTE such as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV align="left"&gt;
&lt;TABLE class="notecontent"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD class="l notebanner"&gt;Note:&lt;/TD&gt;
&lt;TD class="l notecontent"&gt;The following parameters have been set to 0, since the variables are a linear combination of other variables as shown.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;A name="IDX209" target="_blank"&gt;&lt;/A&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;
&lt;TABLE class="table" summary="Procedure Reg: Dependence Equations" frame="box" rules="all" cellspacing="0" cellpadding="5"&gt;&lt;COLGROUP&gt; &lt;COL /&gt;&lt;/COLGROUP&gt; &lt;COLGROUP&gt; &lt;COL /&gt;&lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH class="r t header" scope="col"&gt;Q3 =&lt;/TH&gt;
&lt;TD class="l data"&gt;q1 - q2&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 Feb 2017 20:36:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333571#M17617</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-02-16T20:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: proc factor with polychoric correlation matrix: yields errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333661#M17619</link>
      <description>&lt;PRE&gt;
1) Try add one option to make it as corr dataset. and no need VAR statement.

 data survey.corrMatrix(type=corr);
      set survey.pchor_dm;
      where _type_='CORR';
      drop _type_ _name_;
      run;

proc factor data=survey.corrMatrix;
run;


2)you can get the nearest correlation matrix of it and feed to proc factor.

http://blogs.sas.com/content/iml/2012/11/28/computing-the-nearest-correlation-matrix.html


3) They are ordinal variable,so I guess you can't use it in proc factor.
Maybe you could do it in PCA for qualtative data and get CORR matrix .

PROC PRINQUAL COR ;
&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Feb 2017 03:13:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333661#M17619</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-02-17T03:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: proc factor with polychoric correlation matrix: yields errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333722#M17625</link>
      <description>&lt;P&gt;Good Morning, Rick&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no missing observations in my data. I did use PROC REG with the option COLLIN and of the 103 Variables, only 8 Variables did not have 0 as their parameter estimates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible that 95 Variables are a linear combination of these (mere) 8 variables? Would you recommend continuing only with the 8 Variables? Would I not be loosing information pertaining to the other (maybe not all the 95) variables?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Mari&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 09:51:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333722#M17625</guid>
      <dc:creator>mszommer</dc:creator>
      <dc:date>2017-02-17T09:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: proc factor with polychoric correlation matrix: yields errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333725#M17626</link>
      <description>&lt;P&gt;Thank you, KSharp.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me with the syntax to generate the nearest correlation matrix?&lt;/P&gt;&lt;PRE class="text"&gt;/* symmetric matrix, but not positive definite */
A = {1.0  0.99 0.35, 
     0.99 1.0  0.80, 
     0.35 0.80 1.0} ;
B = NearestCorr(A);
print B;&lt;/PRE&gt;&lt;P&gt;As per the link that you quoted, my A would be survey.corrMatrix and B the NearestCorr(survey.corrMatrix), is it? Sorry, that I do not get this part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mari&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 09:55:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333725#M17626</guid>
      <dc:creator>mszommer</dc:creator>
      <dc:date>2017-02-17T09:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: proc factor with polychoric correlation matrix: yields errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333731#M17627</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;BLOCKQUOTE&gt;mszommer wrote:
&lt;P&gt;I have no missing observations in my data. I did use PROC REG with the option COLLIN and of the 103 Variables, only 8 Variables did not have 0 as their parameter estimates.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible that 95 Variables are a linear combination of these (mere) 8 variables? Would you recommend continuing only with the 8 Variables? Would I not be loosing information pertaining to the other (maybe not all the 95) variables?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You ask&amp;nbsp;whether it is possible&amp;nbsp;that Is&amp;nbsp;95 variables are linear combinations of 8. &amp;nbsp;Assuming that you ran PROC REG correctly, that is indeed what your results are saying. At this point, you need to look at the data to find out why there is not &amp;nbsp;much valid information. Are most columns entirely zero? &amp;nbsp;Entirely 1? Use PROC FREQ to &amp;nbsp;run an analysis to determine the distribution of the variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's not much else that I can &amp;nbsp;suggest if your data are degenerate. Review the &amp;nbsp;way the data were gathered and onsult with a knowledgeable colleague/statisticians who can help you&amp;nbsp;discover the problem. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good luck!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 10:38:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/333731#M17627</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2017-02-17T10:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: proc factor with polychoric correlation matrix: yields errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/334020#M17631</link>
      <description>&lt;PRE&gt;
Rick's blog has already offer the IML code to get nearest correlation matrix.Just follow it step by step.

As I said before, your data is not continuous ,while is ordinal or nominal value,
therefore you can not directly use  PROC FACTOR. Your best choice is PROC PRINQUAL.
Especial the second example in its documentation.

proc prinqual data=bball out=tbball scores n=1 tstandard=z
plots=transformations;
title2 'Optimal Monotonic Transformation of Ranked Teams';
title3 'with Constrained Estimation of Unranked Teams';
transform untie(CSN -- SportsIllustrated);
id School;
run;
plots=transformations;
title2 'Optimal Monotonic Transformation of Ranked Teams';
title3 'with Constrained Estimation of Unranked Teams';
transform untie(CSN -- SportsIllustrated);
id School;
run;
* Perform the Final Principal Component Analysis;
proc factor nfactors=1 plots=scree;
title4 'Principal Component Analysis';
ods select factorpattern screeplot;
var TCSN -- TSportsIllustrated;
run;



&lt;/PRE&gt;</description>
      <pubDate>Sat, 18 Feb 2017 03:39:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/334020#M17631</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-02-18T03:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc factor with polychoric correlation matrix: yields errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/334168#M17636</link>
      <description>&lt;PRE&gt;
Here I quoted from the Example 2 of PROC PRINQUAL.


An alternative approach is to use the pairwise deletion option of the CORR procedure to compute the
correlation matrix and then use PROC PRINCOMP or PROC FACTOR to perform the principal component
analysis. This approach has several disadvantages. The correlation matrix might not be positive semidefinite
(PSD), an assumption required for principal component analysis. PROC PRINQUAL always produces a PSD
correlation matrix. Even with pairwise deletion, PROC CORR removes the six observations that have only a
single nonmissing value from this data set. Finally, it is still not possible to calculate scores on the principal
components for those teams that have missing values.


&lt;/PRE&gt;</description>
      <pubDate>Sun, 19 Feb 2017 07:06:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/334168#M17636</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-02-19T07:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc factor with polychoric correlation matrix: yields errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/334325#M17639</link>
      <description>&lt;P&gt;Hello KSharp,&lt;BR /&gt;Thank you for your replies.&lt;BR /&gt;&lt;BR /&gt;I was attempting to run the PROC PRINQUAL and it runs forever.&lt;BR /&gt;I then mentioned the nominal and ordinal variables as opscore and monotone (without the untie option, as I do not have any missing values.):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;proc prinqual data=survey.mydata out=survey.prinq scores n=1 tstandard=z&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;plots=transformations;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;transform opscore(Q1&amp;nbsp;&amp;nbsp; Q3&amp;nbsp;&amp;nbsp; Q4A&amp;nbsp; Q4B&amp;nbsp; Q4C&amp;nbsp; Q4D&amp;nbsp; Q4E&amp;nbsp; Q4F&amp;nbsp; Q4G &amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Q4H&amp;nbsp; Q4I&amp;nbsp; Q4J&amp;nbsp; Q5A&amp;nbsp; Q5B Q5C&amp;nbsp; Q5D&amp;nbsp; Q5E&amp;nbsp; Q5F&amp;nbsp; Q5G&amp;nbsp; Q5H&amp;nbsp; Q7&amp;nbsp; Q13 &amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Q22&amp;nbsp;&amp;nbsp; &amp;nbsp; Q23&amp;nbsp; Q30&amp;nbsp; Q31&amp;nbsp; Q32A&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Q32B Q32C Q32D Q32E&amp;nbsp;&amp;nbsp; &amp;nbsp;Q32F)&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;monotone(Q6A&amp;nbsp; Q6B&amp;nbsp; Q6C&amp;nbsp; Q6D&amp;nbsp; Q6E&amp;nbsp; Q6F&amp;nbsp; Q10A&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Q10B Q10C Q10D Q10E&amp;nbsp;&amp;nbsp; &amp;nbsp;Q10F Q10G Q11A Q11B Q11C Q11D Q11E Q11F Q11G Q15A&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Q15B Q15C Q15D Q16A Q16B Q16C Q17&amp;nbsp; Q18A Q18B Q18C Q18D Q19A Q19B&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Q19C Q20A Q20B Q20C&amp;nbsp;&amp;nbsp; &amp;nbsp;Q21A Q21B Q21C Q21D Q21E Q21F Q21G Q21H Q21I Q21J&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Q24A Q24B Q24C Q24D Q24E Q24F Q24G Q24H Q24I Q25&amp;nbsp; Q26A Q26B&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;Q26C Q26D Q26E Q26F&amp;nbsp;&amp;nbsp; &amp;nbsp;Q26G Q26H Q26I Q26J Q26K Q27&amp;nbsp; Q28);&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;run;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and got a note 'Algorithm converged'. Could you tell me what it means?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Mari&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 15:21:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/334325#M17639</guid>
      <dc:creator>mszommer</dc:creator>
      <dc:date>2017-02-21T15:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: proc factor with polychoric correlation matrix: yields errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/334537#M17649</link>
      <description>&lt;PRE&gt;
It means the result looks real good.
Could you try a small data and variables to see if you could get the result.

&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Feb 2017 02:34:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/334537#M17649</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-02-21T02:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: proc factor with polychoric correlation matrix: yields errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/334540#M17650</link>
      <description>&lt;PRE&gt;
And try the code as simple as 

ods select none;
proc prinqual data=survey.mydata out=survey.prinq;
transform ...........
run;

ods select all;
proc factor.........



&lt;/PRE&gt;</description>
      <pubDate>Tue, 21 Feb 2017 02:44:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/334540#M17650</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-02-21T02:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: proc factor with polychoric correlation matrix: yields errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/334653#M17654</link>
      <description>&lt;P&gt;Sure, will run it with fewer Obs. and with the simpler code you recommended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The idea was to reduce the no. of variables (a mix of only ordinal and nominal) and then run a cluster analysis based on the factor scores. However, is it recommendable to name/profile the factors that resulted from a principal component analysis? OR would you have recommended running a cluster analysis directly with the 103 variables?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Feb 2017 15:17:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/334653#M17654</guid>
      <dc:creator>mszommer</dc:creator>
      <dc:date>2017-02-21T15:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: proc factor with polychoric correlation matrix: yields errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/334823#M17664</link>
      <description>&lt;P&gt;No. You have ordinal and nominal variables, not continuous variables.Therefore you can not use PROC CLUSTER or &lt;SPAN&gt;a principal component analysis&lt;/SPAN&gt;&amp;nbsp;directly. Best choice is PROC PRINQUAL .&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 01:59:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/334823#M17664</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-02-22T01:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: proc factor with polychoric correlation matrix: yields errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/334892#M17665</link>
      <description>&lt;PRE&gt;
Or you could try PROC VARCLUS, but I don't know if it could fit your ambition .

&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Feb 2017 11:36:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/334892#M17665</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-02-22T11:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: proc factor with polychoric correlation matrix: yields errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/337288#M17783</link>
      <description>&lt;P&gt;Hello KSharp,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did use proc factor (method=principal) using the output from proc prinqual, in order to reduce my variables.&lt;/P&gt;&lt;P&gt;I then wish to segment the respondents; would you still recommend proc varclus or k-means?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;MS&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 10:28:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/337288#M17783</guid>
      <dc:creator>mszommer</dc:creator>
      <dc:date>2017-03-02T10:28:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc factor with polychoric correlation matrix: yields errors</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/337291#M17785</link>
      <description>&lt;P&gt;You mean segment the obs ? I don't think proc varclus or k-means can do that. both need variables be continuous.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 10:35:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/proc-factor-with-polychoric-correlation-matrix-yields-errors/m-p/337291#M17785</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-03-02T10:35:34Z</dc:date>
    </item>
  </channel>
</rss>

