<?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 Generating a latent variable for all subjects if some of the variables used in CFA have missing data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Generating-a-latent-variable-for-all-subjects-if-some-of-the/m-p/975473#M48916</link>
    <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am running confirmatory factor analysis to generate a latent variable 'mental health'. Some subjects have missing data on on some dimensions of mental health. I use full information maximum likelihood option, and I would like to generate a latent variable 'mental health' for all subjects even if they have missing data on some of dimensions. My code produces this variable only for those who have full data on all variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc calis method=fiml data=all outstat=ostat;&lt;BR /&gt;factor&lt;BR /&gt;mental_health ===&amp;gt;x1 x2 x3 x4 x5 x6 x7;&lt;BR /&gt;pvar mental_health=1.;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc score data=all score=ostat out=scores1;&lt;BR /&gt;var x1 x2 x3 x4 x5 x6 x7;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please help me?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks in advance!&lt;/P&gt;</description>
    <pubDate>Mon, 22 Sep 2025 11:43:57 GMT</pubDate>
    <dc:creator>Polina_UH</dc:creator>
    <dc:date>2025-09-22T11:43:57Z</dc:date>
    <item>
      <title>Generating a latent variable for all subjects if some of the variables used in CFA have missing data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Generating-a-latent-variable-for-all-subjects-if-some-of-the/m-p/975473#M48916</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am running confirmatory factor analysis to generate a latent variable 'mental health'. Some subjects have missing data on on some dimensions of mental health. I use full information maximum likelihood option, and I would like to generate a latent variable 'mental health' for all subjects even if they have missing data on some of dimensions. My code produces this variable only for those who have full data on all variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc calis method=fiml data=all outstat=ostat;&lt;BR /&gt;factor&lt;BR /&gt;mental_health ===&amp;gt;x1 x2 x3 x4 x5 x6 x7;&lt;BR /&gt;pvar mental_health=1.;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc score data=all score=ostat out=scores1;&lt;BR /&gt;var x1 x2 x3 x4 x5 x6 x7;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please help me?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Sep 2025 11:43:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Generating-a-latent-variable-for-all-subjects-if-some-of-the/m-p/975473#M48916</guid>
      <dc:creator>Polina_UH</dc:creator>
      <dc:date>2025-09-22T11:43:57Z</dc:date>
    </item>
  </channel>
</rss>

