<?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>Robin_moon Tracker</title>
    <link>https://communities.sas.com/kntur85557/tracker</link>
    <description>Robin_moon Tracker</description>
    <pubDate>Sun, 19 Apr 2026 06:29:48 GMT</pubDate>
    <dc:date>2026-04-19T06:29:48Z</dc:date>
    <item>
      <title>How to test the interaction between strata and treatment groups in a mmrm model?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-test-the-interaction-between-strata-and-treatment-groups/m-p/926210#M46059</link>
      <description>&lt;P&gt;I constructed a mmrm model as below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt; proc mixed data = have;
 class id treatment week strata;
 model chg = base treatment week treatment*week treatment*strata/ ddfm = KR;
 repeated week/ subject = id type = UN;
 lsmeans treatment*week/ cl alpha = 0.05 diff
 ods output Tests3=tests3 lsmeans=lsmeans diffs=diffs;
 run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(1) id: represents the patient id;&lt;/P&gt;&lt;P&gt;(2) treatment: contains 2 group, "drug" and "placebo";&lt;/P&gt;&lt;P&gt;(3) chg: change from baseline of hba1c;&lt;/P&gt;&lt;P&gt;(4) base: the value of hba1c at baseline;&lt;/P&gt;&lt;P&gt;(5) week: contains 3 levels: "week8", "week16" and "week24"&lt;/P&gt;&lt;P&gt;(6 )strata: stratification based on the median of baseline hba1c, ie&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; group1=patients of those who have baseline hba1c &amp;lt;= median of baseline hba1c;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; group2=patients of those who have baseline hba1c &amp;gt; median of baseline hba1c.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general, I'd like to know how to the test the interaction between strata and treatment groups. I am not sure if I constructed the model in a right way because I looked at the results (as below), the values of Diffs in LS means were pretty close between strata, but p for interaction was significant. (The Diffs in LS means were got from the output file diffs, and the p for interaction were got from the output file test3.)&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="interaction.PNG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95980i9BD39C2E31893048/image-size/large?v=v2&amp;amp;px=999" role="button" title="interaction.PNG" alt="interaction.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also checked the Diffs in LS means of week8 and week16, the diffs in LS means were all pretty close between 2 strata, but the p for interaction were all significant (p-value &amp;lt; 0.0001). So I am not sure if I interpret the result in the right way. What data should look quite different if the p for interaction is statistically significant? Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 09:22:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-test-the-interaction-between-strata-and-treatment-groups/m-p/926210#M46059</guid>
      <dc:creator>Robin_moon</dc:creator>
      <dc:date>2024-04-28T09:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to list all the datasets with same end in a simpler way?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-list-all-the-datasets-with-same-end-in-a-simpler-way/m-p/926209#M364489</link>
      <description>Thanks for sharing the link. So sad to hear from that. SAS has a shortcut for selecting variables with same prefix but not for suffix.</description>
      <pubDate>Sun, 28 Apr 2024 08:57:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-list-all-the-datasets-with-same-end-in-a-simpler-way/m-p/926209#M364489</guid>
      <dc:creator>Robin_moon</dc:creator>
      <dc:date>2024-04-28T08:57:40Z</dc:date>
    </item>
    <item>
      <title>How to test the interaction between strata and treatment groups in a mmrm model?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-test-the-interaction-between-strata-and-treatment-groups/m-p/926208#M364488</link>
      <description>&lt;P&gt;I performed a mmrm model as below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt; proc mixed data = have;
         class id treatment week strata;
         model chg = baseline treatment week treatment*week treatment*strata/ ddfm = KR;
         repeated week/ subject = id type = UN;
         lsmeans treatment*week/ cl alpha = 0.05 diff
         ods output Tests3=tests3 lsmeans=lsmeans diffs=diffs;
         run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In the model:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(1) &lt;/SPAN&gt;id:&amp;nbsp;&lt;SPAN&gt;represents the patient id, ie 101,102,103....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(2) chg: represents the change from baseline of hba1c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(3) baseline: the value of hba1c at baseline&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(4) treatment: contains 2 categories: "drug" and "placebo"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(5) week: contrains 3 levels: week8, week16, week24&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(6) strata: represents the stratification by the median of hba1c at baseline, ie:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;group1=patient of those who have hba1c at baseline &amp;lt;= median of hba1c at baseline;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;group2=patient of those who have hba1c at baseline &amp;gt; median of hba1c at baseline.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In general, I'd like to test the interaction between strata and treatment, but I am not sure if I performed the test in the right way. Because I checked the results (as below), the column of "Diffs in LS means" were pretty close between strata, however the interaction p-value is statistically significant. (The values of Diffs in LS means were got from the output file diffs, and the p for interaction were got from the output file test3.)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="interaction.PNG" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95980i9BD39C2E31893048/image-size/large?v=v2&amp;amp;px=999" role="button" title="interaction.PNG" alt="interaction.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also checked the Diffs in LS means not only at week24, but also week 8 and week16, they all looked pretty close between strata. So did I interpret the data in a wrong way? Or did I perform the model in a wrong way? What data should look different if the p for interaction is significant? Thanks!&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 08:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-test-the-interaction-between-strata-and-treatment-groups/m-p/926208#M364488</guid>
      <dc:creator>Robin_moon</dc:creator>
      <dc:date>2024-04-28T08:51:06Z</dc:date>
    </item>
    <item>
      <title>How to list all the datasets with same end in a simpler way?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-list-all-the-datasets-with-same-end-in-a-simpler-way/m-p/925957#M364361</link>
      <description>&lt;P&gt;I saw a loop code the other day. And it generate files of output_&amp;amp;i (i.e. output_1, output_2,..., output_n). At the end, it row bind all the files as:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data all_results;
     set output_:;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It seems that we could list files output_1, output_2, ... , output_n in a simple way by using ":" as output_:, so I tried to row bind my files that all end up with "_output" (i.e. 1_output, 2_output, 3_output) in a similar way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data all_results;
    set :_output;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But it failed. I'd like to know how to write the code in the right way. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Apr 2024 06:58:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-list-all-the-datasets-with-same-end-in-a-simpler-way/m-p/925957#M364361</guid>
      <dc:creator>Robin_moon</dc:creator>
      <dc:date>2024-04-26T06:58:35Z</dc:date>
    </item>
    <item>
      <title>How to pass the time value to another variable?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-pass-the-time-value-to-another-variable/m-p/791131#M253352</link>
      <description>&lt;P&gt;I have a column called startdate with time values, like:&lt;/P&gt;&lt;P&gt;30JUN1948:00:00:00.000&lt;/P&gt;&lt;P&gt;07JAN1967:00:00:00.000&lt;/P&gt;&lt;P&gt;01FEB1953:00:00:00.000&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;When I tried to pass the time value to a new variable called start,&amp;nbsp; like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data want;
set data have;
start = startdate;&lt;BR /&gt;run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The new column start looked like this:&lt;/P&gt;&lt;P&gt;-363052800&lt;/P&gt;&lt;P&gt;221443200&lt;/P&gt;&lt;P&gt;-218160000&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to know how to pass the date time value to the new column with its original format? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jan 2022 12:47:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-pass-the-time-value-to-another-variable/m-p/791131#M253352</guid>
      <dc:creator>Robin_moon</dc:creator>
      <dc:date>2022-01-20T12:47:26Z</dc:date>
    </item>
    <item>
      <title>How to convert xpt file into sas file by xpt2loc?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-xpt-file-into-sas-file-by-xpt2loc/m-p/790882#M253245</link>
      <description>&lt;P&gt;sI tried to convert two xpt file called "ae.xpt" and "se.xpt" into sas file called ae and se as well. The original file was saved at "D:\sdtm\data_xpt", and I want the converted sas file to be saved at "D:\sdtm\data_sas".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here was my code, but it didn't work:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;libname sasfiles 'D:\sdtm\data_sas';

%let Root=D:\sdtm\data_xpt;
%xpt2loc(libref=sasfiles, memlist=ae, filespec='&amp;amp;root\ae.xpt');
%xpt2loc(libref=sasfiles, memlist=se, filespec='&amp;amp;root\se.xpt');&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;How to write the correct one? Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jan 2022 13:09:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-xpt-file-into-sas-file-by-xpt2loc/m-p/790882#M253245</guid>
      <dc:creator>Robin_moon</dc:creator>
      <dc:date>2022-01-19T13:09:06Z</dc:date>
    </item>
  </channel>
</rss>

