<?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: Latent Change Model for Cluster-randomized control trial in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Latent-Change-Model-for-Cluster-randomized-control-trial/m-p/921149#M45771</link>
    <description>&lt;P&gt;Dear Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for this suggestion. I have about 700 records, so not ideal for this, but the model does give me the pattern that is expected, with a significant interaction between condition, time -&amp;nbsp; even though the 3-way interaction with the "latent" variable (new_dv) is also significant, since the two-way interaction condition*time is stronger for one level of new_dv.&amp;nbsp; &amp;nbsp;I will try and present these analysis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, as always.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eman&lt;/P&gt;</description>
    <pubDate>Wed, 20 Mar 2024 17:52:51 GMT</pubDate>
    <dc:creator>emaneman</dc:creator>
    <dc:date>2024-03-20T17:52:51Z</dc:date>
    <item>
      <title>Latent Change Model for Cluster-randomized control trial</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Latent-Change-Model-for-Cluster-randomized-control-trial/m-p/918935#M45627</link>
      <description>&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am analysing data from a&amp;nbsp;Cluster-randomized control trial conducted in different schools in different cities, thus with three RANDOM FACTORS.&amp;nbsp; Students are assigned to to either a treatment or a control group (CONDITION), and the goal is to evaluate the effect of the treatment on two DVs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So far I have analysed the data with PROC MIXED (syntax included),&amp;nbsp; separately for each DV.&amp;nbsp; However, I am now required to consider the two DVs as indicators of a Latent variable, and I am thus used&amp;nbsp; PROC CALIS to test a&amp;nbsp;Latent Change Model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The syntax of both the PROC MIXED and the PROC CALIS are attached.&amp;nbsp; However, my PROC CALIS syntax,&amp;nbsp; at present, is not taking into consideration the random factors and it is also not considering other individual difference variables, such as SEX and Age, which are&amp;nbsp; considered in PROC MIXED.&amp;nbsp; I believe I may have to test a&amp;nbsp;&lt;SPAN&gt;Multilevel Structural Equation Model, but this is stretching my SAS programming skills, and I am thus here I am. Any suggestion on how to add the random factors (and ideally also age and sex in a manner equivalent to what is now in PROC MIXED) to the PROC CALIS would be much appreciated.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;/*
NOTE

data long (PROC MIXED)is in long format; variable TIME (time1 and time2) represents the repeated-measure factor 

data wide (for PROC CALIS) is in wide format. 
DV1_1 and DV2_1 are measurement at time1 
DV1_2 and DV2_2 are measurement at time2 

*/

proc mixed  data=long;
class id Condition school class place sex time;
model DV1= condition|time|sex|age ;
Random intercept /subject=&lt;SPAN&gt;class&lt;/SPAN&gt;(school); &lt;BR /&gt;Random intercept /subject=school(place); &lt;BR /&gt;Random intercept /subject=place; &lt;BR /&gt;&lt;BR /&gt;proc mixed  data=long;
class id Condition school class place sex time;
model DV2= condition|time|sex|age ;
Random intercept /subject=&lt;SPAN&gt;class&lt;/SPAN&gt;(school); &lt;BR /&gt;Random intercept /subject=school(place); &lt;BR /&gt;Random intercept /subject=place; &lt;BR /&gt;&lt;BR /&gt;proc calis data=wide; &lt;BR /&gt;lineqs &lt;BR /&gt;DV1_1 = 1 fLatent1 + e1, &lt;BR /&gt;DV2_1 = 1 fLatent1 + e2, &lt;BR /&gt;DV1_2 = 1 fLatent2 + e3, &lt;BR /&gt;DV2_2 = 1 fLatent2 + e4, &lt;BR /&gt;fLatent2 = 1 fLatent1 + 1 fdelta + e5, &lt;BR /&gt;fdelta = a6 Condition + e6; &lt;BR /&gt;&lt;BR /&gt;cov &lt;BR /&gt;&lt;BR /&gt;e1 e3 =DV1corr,&lt;BR /&gt;e2 e4 =DV2corr; &lt;BR /&gt;&lt;BR /&gt;std &lt;BR /&gt;&lt;BR /&gt;fLatent1 = eFL1, &lt;BR /&gt;e1-e4 = evar1-evar4,&lt;BR /&gt;e5 = 0, &lt;BR /&gt;e6 = evar6; &lt;BR /&gt;&lt;BR /&gt;run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 10:04:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Latent-Change-Model-for-Cluster-randomized-control-trial/m-p/918935#M45627</guid>
      <dc:creator>emaneman</dc:creator>
      <dc:date>2024-03-05T10:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Latent Change Model for Cluster-randomized control trial</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Latent-Change-Model-for-Cluster-randomized-control-trial/m-p/918988#M45629</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS has a course entitled :&lt;BR /&gt;&lt;SPAN&gt;Structural Equation Modeling Using SAS®&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;The overview page says this :&lt;BR /&gt;&lt;SPAN&gt;This course does not address models containing categorical endogenous variables or multilevel SEM, as these methods are not supported in the CALIS procedure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;I think this statement is still true.&lt;BR /&gt;Maybe&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/20964"&gt;@CatTruxillo&lt;/a&gt;&amp;nbsp;can confirm?&lt;BR /&gt;&lt;BR /&gt;BR, Koen&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 16:40:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Latent-Change-Model-for-Cluster-randomized-control-trial/m-p/918988#M45629</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-03-05T16:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: Latent Change Model for Cluster-randomized control trial</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Latent-Change-Model-for-Cluster-randomized-control-trial/m-p/920964#M45748</link>
      <description>&lt;P&gt;Consider that the two dependent variables are correlated measures on each subject, i.e. two manifestations of a latent variable. PROC MIXED supports Kronecker product covariance structures to handle this. See this paper by Tao, Kiernan and Gibbs&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;A href="https://support.sas.com/resources/papers/proceedings15/SAS1919-2015.pdf" target="_self"&gt;https://support.sas.com/resources/papers/proceedings15/SAS1919-2015.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To make this work you will need to move from the long form of your data to an "extra-long" format, adding a new variable (call it new_DV that takes on a value of 1 when the response variable is DV1 and 2 when the response variable is DV2. In the extra-long format, each record will have a unique combination of id, condition, school, class, place, sex, time and new_DV&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code for the analysis could look like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=""&gt;proc mixed  data=long;
class id Condition school class place sex time new_dv;
model response = new_DV|condition|time|sex|age/solution ;
Random intercept /subject=&lt;SPAN&gt;class&lt;/SPAN&gt;(school); &lt;BR /&gt;Random intercept /subject=school(place); &lt;BR /&gt;Random intercept /subject=place; &lt;BR /&gt;Repeated&amp;nbsp;new_DV&amp;nbsp;time/type=un@un&amp;nbsp;subject=id r;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;This assumes that ID is unique across all schools, classes and places. If not, you'll have to nest ID in the subject= option for the REPEATED statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this is along the lines of what you are looking for.&amp;nbsp; I fear that fitting a five-way interaction and all lower level interactions might be a bit dicey, unless you have thousands of records.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 18:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Latent-Change-Model-for-Cluster-randomized-control-trial/m-p/920964#M45748</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2024-03-19T18:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Latent Change Model for Cluster-randomized control trial</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Latent-Change-Model-for-Cluster-randomized-control-trial/m-p/921149#M45771</link>
      <description>&lt;P&gt;Dear Steve,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for this suggestion. I have about 700 records, so not ideal for this, but the model does give me the pattern that is expected, with a significant interaction between condition, time -&amp;nbsp; even though the 3-way interaction with the "latent" variable (new_dv) is also significant, since the two-way interaction condition*time is stronger for one level of new_dv.&amp;nbsp; &amp;nbsp;I will try and present these analysis.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, as always.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eman&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 17:52:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Latent-Change-Model-for-Cluster-randomized-control-trial/m-p/921149#M45771</guid>
      <dc:creator>emaneman</dc:creator>
      <dc:date>2024-03-20T17:52:51Z</dc:date>
    </item>
  </channel>
</rss>

