<?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>rss.livelink.posts-in-node</title>
    <link>https://communities.sas.com/</link>
    <description>SAS Support Communities</description>
    <pubDate>Mon, 29 Apr 2024 00:55:23 GMT</pubDate>
    <dc:creator>Community</dc:creator>
    <dc:date>2024-04-29T00:55:23Z</dc:date>
    <item>
      <title>Visual Analytics - Scatter Plot blank with large datasets</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-Scatter-Plot-blank-with-large-datasets/m-p/926238#M17973</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to get scatter plots of some numeric columns in my dataset with ~1million records, but it shows up empty. I've tried multiple combinations of columns and it's always just blank, like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sc5_0-1714349434536.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95983iD6D57AA414D1C088/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sc5_0-1714349434536.png" alt="sc5_0-1714349434536.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm guessing it's an issue with the no. of data points, because when I charted a test dataset&amp;nbsp; i ~ = j with 1000 records it works.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sc5_1-1714350018970.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95984iB5C6A8537283C56E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sc5_1-1714350018970.png" alt="sc5_1-1714350018970.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I expand the same dataset to a million records it's blank.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does anyone know how I can fix this and plot scatter plots with large datasets?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 00:21:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Visual-Analytics-Scatter-Plot-blank-with-large-datasets/m-p/926238#M17973</guid>
      <dc:creator>sc5</dc:creator>
      <dc:date>2024-04-29T00:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression adjusting for covariate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-adjusting-for-covariate/m-p/926235#M46063</link>
      <description>&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;Can you help me where I can find P-value trend for logistic regression in SAS results? For example, in this table&amp;nbsp;&lt;A href="https://www.nature.com/articles/s41598-024-52946-z/tables/4," target="_blank"&gt;https://www.nature.com/articles/s41598-024-52946-z/tables/4,&lt;/A&gt;&amp;nbsp;how is the P-value trend calculated?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 00:05:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-adjusting-for-covariate/m-p/926235#M46063</guid>
      <dc:creator>Manije72</dc:creator>
      <dc:date>2024-04-29T00:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create new date variable based on specific condition</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-new-date-variable-based-on-specific-condition/m-p/926234#M41575</link>
      <description>&lt;P&gt;This code works for those who have UI = 0, new_date is equal to last_visit&lt;/P&gt;
&lt;P&gt;However, it did not work for those who have UI = 1, such as DMRN 31. I would like new_date for DMRN31 to be as 4MAY2021 4MAY2021 4MAY2021&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="width: 50px;" border="1" width="50px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;DMRN&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;last_visit&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;UI&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;recorded_time&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;new_date&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;31&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;&lt;SPAN&gt;26AUG2021&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;0&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;&lt;SPAN&gt;06APR2018&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;&lt;SPAN&gt;26AUG2021&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;31&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;&lt;SPAN&gt;26AUG2021&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;0&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;&lt;SPAN&gt;16JAN2020&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;&lt;SPAN&gt;26AUG2021&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;31&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;&lt;SPAN&gt;26AUG2021&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;1&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;&lt;STRONG&gt;4MAY2021&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;&lt;STRONG&gt;4MAY2021&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;33&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;24MAY2022&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;0&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;&lt;SPAN&gt;02MAR2020&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;24MAY2022&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;33&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;24MAY2022&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;0&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;&lt;SPAN&gt;24MAY2022&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;24MAY2022&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;35&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;&lt;SPAN&gt;01DEC2014&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;0&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;&lt;SPAN&gt;25MAR2013&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;&lt;SPAN&gt;01DEC2014&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Mon, 29 Apr 2024 00:04:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-new-date-variable-based-on-specific-condition/m-p/926234#M41575</guid>
      <dc:creator>tan-wongv</dc:creator>
      <dc:date>2024-04-29T00:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Keep only value and date that occurred before or at last visit date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Keep-only-value-and-date-that-occurred-before-or-at-last-visit/m-p/926233#M41574</link>
      <description>&lt;P&gt;Thank you so much for your guide!! I found the problem as you said. I fixed it and now your code works &lt;img class="lia-deferred-image lia-image-emoji" src="https://communities.sas.com/html/@6FE83AE35923AF2F434EAFCCE8AC58AF/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 23:38:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Keep-only-value-and-date-that-occurred-before-or-at-last-visit/m-p/926233#M41574</guid>
      <dc:creator>tan-wongv</dc:creator>
      <dc:date>2024-04-28T23:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Find Standard deviation from 2, or more, columns/variables with aim of SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Find-Standard-deviation-from-2-or-more-columns-variables-with/m-p/926232#M364496</link>
      <description>&lt;P&gt;You asked this question already and you have been told you need to convert your variables into a single variable.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select south as new_var from have
union all
select north as new_var from have&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then you can calculate mean, std, var, and other statistics on this new variable.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 23:32:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Find-Standard-deviation-from-2-or-more-columns-variables-with/m-p/926232#M364496</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-04-28T23:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Keep only value and date that occurred before or at last visit date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Keep-only-value-and-date-that-occurred-before-or-at-last-visit/m-p/926231#M41573</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/464169"&gt;@tan-wongv&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you so much for your response!&amp;nbsp; I tried this code but the outcome just showed the observation where recorded_time is less than last_vist. It did not include the recorded_time that is equal to last_visit.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That could only happen if the date values are not integers.&amp;nbsp; The DATE format will ignore fractions of a day so the values would print as being equal even though they would compare as not equal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try looking at the values for one of the cases where the values look to you like they are equal but did not get selected by the WHERE (or IF) test.&amp;nbsp; Display the values with out the format or with some other format such as BEST32. or HEX16.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How did you enter those values into your SAS dataset?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 23:07:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Keep-only-value-and-date-that-occurred-before-or-at-last-visit/m-p/926231#M41573</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-04-28T23:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Keep only value and date that occurred before or at last visit date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Keep-only-value-and-date-that-occurred-before-or-at-last-visit/m-p/926230#M41572</link>
      <description>&lt;P&gt;Thank you so much for your response!&amp;nbsp; I tried this code but the outcome just showed the observation where recorded_time is less than last_vist. It did not include the recorded_time that is equal to last_visit.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 23:03:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Keep-only-value-and-date-that-occurred-before-or-at-last-visit/m-p/926230#M41572</guid>
      <dc:creator>tan-wongv</dc:creator>
      <dc:date>2024-04-28T23:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression adjusting for covariate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-adjusting-for-covariate/m-p/926228#M46062</link>
      <description>&lt;P&gt;If you have a continuous measure of fruit consumption, then reducing it to a 3 level variable just throws away information. So I would use your FRUIT variable as a predictor, not FRUITCODE. Then, I would use your first PROC LOGISTIC step, particularly if either GENDER or RACE has more than two levels. You should put a variable in the CLASS statement any time it is a categorical variable and has more than two levels. Then the CLASS statement will internally create a set of dummy-coded variables to represent it in the model. As I mentioned in your previous question, the test of FRUIT will then test the linear trend of fruit consumption on the log odds of diabetes. If that's not what you mean by "P-trend" then you need to clarify exactly what you mean by it. But be aware that it is possible that consumption is not linearly associated with with diabetes, and if so, your model does not accommodate that because it assumes a linear association. There are ways, such as splines, to allow the model to be more flexible if you have a reason to suspect nonlinearity.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 20:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-adjusting-for-covariate/m-p/926228#M46062</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2024-04-28T20:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: logistic regression adjusting for covariate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-adjusting-for-covariate/m-p/926227#M46061</link>
      <description>&lt;P&gt;You asked the exact same question in 2023 and it was answered.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/The-code-for-P-trend-for-logistic-regression/td-p/857243" target="_blank"&gt;https://communities.sas.com/t5/Statistical-Procedures/The-code-for-P-trend-for-logistic-regression/td-p/857243&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 19:52:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-adjusting-for-covariate/m-p/926227#M46061</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-04-28T19:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create new date variable based on specific condition</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-new-date-variable-based-on-specific-condition/m-p/926226#M41571</link>
      <description>&lt;P&gt;You seem to have already written the code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you try running it?&amp;nbsp; What happened?&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set have;
  if UI = 1 then new_date = recorded_time;
  else if UI = 0 then new_date = last_visit;
  format new_date date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;</description>
      <pubDate>Sun, 28 Apr 2024 19:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-new-date-variable-based-on-specific-condition/m-p/926226#M41571</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-04-28T19:26:38Z</dc:date>
    </item>
    <item>
      <title>logistic regression adjusting for covariate</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-adjusting-for-covariate/m-p/926225#M46060</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to explore the relationship between fruit consumption and diabetes. I've categorized fruit intake into tertiles, while diabetes status is binary (yes/no). I want to adjust the findings to age (continuous), gender (categorical), race (categorical), and physical activity&amp;nbsp;(categorical) in the analysis. Is the logistic regression code that I want to use correct?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;logistic&lt;/STRONG&gt; data=SS plots(only)=(effect oddsratio);&lt;/P&gt;&lt;P&gt;class Gender(ref='1') race(ref='1') physical_activity(ref='1')/param=ref ;&lt;/P&gt;&lt;P&gt;model diabetes(event='1')= fruitcode age Gender race physical_activity/Clodds=wald;&lt;/P&gt;&lt;P&gt;title " Association of fruit with diabetes (adjust for age, gender, race, physical activity) ";&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;Fruitcode: I used fruit tertile in this code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For finding the P-trend, I used this code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;logistic&lt;/STRONG&gt; data=SS plots(only)=(effect oddsratio);&lt;/P&gt;&lt;P&gt;model diab(event='1')= fruit age Gender race physical_activity/Clodds=wald;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;Fruit is continuous&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 19:09:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/logistic-regression-adjusting-for-covariate/m-p/926225#M46060</guid>
      <dc:creator>Manije72</dc:creator>
      <dc:date>2024-04-28T19:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Keep only value and date that occurred before or at last visit date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Keep-only-value-and-date-that-occurred-before-or-at-last-visit/m-p/926224#M41570</link>
      <description>&lt;P&gt;Seems simple enough.&amp;nbsp; First let's convert your existing (HAVE) data listing and expected (EXPECT) data listings into datasets.&amp;nbsp; Then you just need to select the observations where recorded_time is less than or equal to last_visit.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  input DMRN $ last_visit :date. UI recorded_time :date.;
  format last_visit recorded_time date9.;
cards;
31 26AUG2021 0 06APR2018
31 26AUG2021 0 16JAN2020
31 26AUG2021 1 4MAY2021
31 26AUG2021 1 26MAY2022
33 24MAY2022 0 02MAR2020
33 24MAY2022 0 24MAY2022
35 01DEC2014 0 25MAR2013
35 01DEC2014 1 05JAN2015
;

data expect;
  input DMRN $ last_visit :date. UI recorded_time :date.;
  format last_visit recorded_time date9.;
cards;
31 26AUG2021 0 06APR2018
31 26AUG2021 0 16JAN2020
31 26AUG2021 1 4MAY2021
33 24MAY2022 0 02MAR2020
33 24MAY2022 0 24MAY2022
35 01DEC2014 0 25MAR2013
;

data want ;
  set have;
  where recorded_time &amp;lt;= last_visit;
run;

proc compare data=want compare=expect;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1714329161689.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95982i9FA824C6544F20A6/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tom_0-1714329161689.png" alt="Tom_0-1714329161689.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 18:33:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Keep-only-value-and-date-that-occurred-before-or-at-last-visit/m-p/926224#M41570</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2024-04-28T18:33:00Z</dc:date>
    </item>
    <item>
      <title>Create new date variable based on specific condition</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Create-new-date-variable-based-on-specific-condition/m-p/926222#M41569</link>
      <description>&lt;P&gt;I have a data set contains DMRN, last visit date, the presence of UI, and recorded date of UI.&lt;/P&gt;
&lt;TABLE width="50"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;DMRN&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;last_visit&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;UI&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;recorded_time&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;31&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;26A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t;24MAY2022&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;
&lt;P&gt;35&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;01DEC2014&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;0&lt;/P&gt;
&lt;/TD&gt;
&lt;TD&gt;
&lt;P&gt;25MAR2013&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to create new_date for each DMRN based on these conditions: &lt;BR /&gt;if UI = 1 then new_date = recorded_time&lt;BR /&gt;else if UI = 0 then new_date = last_visit&lt;BR /&gt;The outcome would be like as follow:&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="width: 50px;" border="1" width="411px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;DMRN&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;last_visit&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;UI&lt;/TD&gt;
&lt;TD width="113.344px" height="30px"&gt;recorded_time&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;new_date&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;31&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;26AUG2021&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;0&lt;/TD&gt;
&lt;TD width="113.344px" height="30px"&gt;06APR2018&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;&lt;STRONG&gt;4MAY2021&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;31&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;26AUG2021&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;0&lt;/TD&gt;
&lt;TD width="113.344px" height="30px"&gt;16JAN2020&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;&lt;STRONG&gt;4MAY2021&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;31&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;26AUG2021&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="113.344px" height="30px"&gt;&lt;STRONG&gt;4MAY2021&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;&lt;STRONG&gt;4MAY2021&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;33&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;24MAY2022&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;0&lt;/TD&gt;
&lt;TD width="113.344px" height="30px"&gt;
&lt;P&gt;02MAR2020&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;24MAY2022&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;33&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;24MAY2022&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;0&lt;/TD&gt;
&lt;TD width="113.344px" height="30px"&gt;24MAY2022&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;24MAY2022&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;35&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;01DEC2014&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;0&lt;/TD&gt;
&lt;TD width="113.344px" height="30px"&gt;25MAR2013&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;01DEC2014&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please help me with the code? Thank you very much&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 18:16:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Create-new-date-variable-based-on-specific-condition/m-p/926222#M41569</guid>
      <dc:creator>tan-wongv</dc:creator>
      <dc:date>2024-04-28T18:16:01Z</dc:date>
    </item>
    <item>
      <title>Keep only value and date that occurred before or at last visit date</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Keep-only-value-and-date-that-occurred-before-or-at-last-visit/m-p/926221#M41568</link>
      <description>&lt;P&gt;I have a dataset contains DMRN, last visit date, the presence of UI, and recorded date of UI&lt;/P&gt;
&lt;TABLE style="width: 50px;" border="1" width="50"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;DMRN&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;last_visit&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;UI&lt;/TD&gt;
&lt;TD width="113.344px" height="30px"&gt;recorded_time&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;31&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;26AUG2021&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;0&lt;/TD&gt;
&lt;TD width="113.344px" height="30px"&gt;06APR2018&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;31&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;26AUG2021&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;0&lt;/TD&gt;
&lt;TD width="113.344px" height="30px"&gt;16JAN2020&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;31&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;26AUG2021&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;1&lt;/TD&gt;
&lt;TD width="113.344px" height="30px"&gt;4MAY2021&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;&lt;STRONG&gt;31&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;&lt;STRONG&gt;26AUG2021&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="113.344px" height="30px"&gt;&lt;STRONG&gt;26MAY2022&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;33&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;24MAY2022&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;0&lt;/TD&gt;
&lt;TD width="113.344px" height="30px"&gt;02MAR2020&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;33&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;24MAY2022&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;0&lt;/TD&gt;
&lt;TD width="113.344px" height="30px"&gt;24MAY2022&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;35&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;01DEC2014&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;0&lt;/TD&gt;
&lt;TD width="113.344px" height="30px"&gt;25MAR2013&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px" height="30px"&gt;&lt;STRONG&gt;35&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="100.703px" height="30px"&gt;&lt;STRONG&gt;01DEC2014&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="40px" height="30px"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="113.344px" height="30px"&gt;&lt;STRONG&gt;05JAN2015&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to keep only UI value and recorded_time that occurred before or equal to last_visit date for each DMRN. Could you please help me with the code?The outcome would look like this:&lt;/P&gt;
&lt;TABLE style="width: 50px;" border="1" width="311px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="58.7969px"&gt;DMRN&lt;/TD&gt;
&lt;TD width="100.703px"&gt;last_visit&lt;/TD&gt;
&lt;TD width="40px"&gt;UI&lt;/TD&gt;
&lt;TD width="113.344px"&gt;recorded_time&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px"&gt;31&lt;/TD&gt;
&lt;TD width="100.703px"&gt;26AUG2021&lt;/TD&gt;
&lt;TD width="40px"&gt;0&lt;/TD&gt;
&lt;TD width="113.344px"&gt;06APR2018&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px"&gt;31&lt;/TD&gt;
&lt;TD width="100.703px"&gt;26AUG2021&lt;/TD&gt;
&lt;TD width="40px"&gt;0&lt;/TD&gt;
&lt;TD width="113.344px"&gt;16JAN2020&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px"&gt;31&lt;/TD&gt;
&lt;TD width="100.703px"&gt;26AUG2021&lt;/TD&gt;
&lt;TD width="40px"&gt;1&lt;/TD&gt;
&lt;TD width="113.344px"&gt;4MAY2021&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px"&gt;33&lt;/TD&gt;
&lt;TD width="100.703px"&gt;24MAY2022&lt;/TD&gt;
&lt;TD width="40px"&gt;0&lt;/TD&gt;
&lt;TD width="113.344px"&gt;02MAR2020&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px"&gt;33&lt;/TD&gt;
&lt;TD width="100.703px"&gt;24MAY2022&lt;/TD&gt;
&lt;TD width="40px"&gt;0&lt;/TD&gt;
&lt;TD width="113.344px"&gt;24MAY2022&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="58.7969px"&gt;35&lt;/TD&gt;
&lt;TD width="100.703px"&gt;01DEC2014&lt;/TD&gt;
&lt;TD width="40px"&gt;0&lt;/TD&gt;
&lt;TD width="113.344px"&gt;25MAR2013&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Sun, 28 Apr 2024 18:01:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Keep-only-value-and-date-that-occurred-before-or-at-last-visit/m-p/926221#M41568</guid>
      <dc:creator>tan-wongv</dc:creator>
      <dc:date>2024-04-28T18:01:15Z</dc:date>
    </item>
    <item>
      <title>Proc logistic effect plot using GTL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-logistic-effect-plot-using-GTL/m-p/926220#M364495</link>
      <description>&lt;P&gt;hello ,&lt;BR /&gt;I am trying to use graph template use by Proc Logistics / effectplot , so that I can modify the graph template for some changes&lt;BR /&gt;like Y axis label . But when I use this below code&lt;/P&gt;&lt;PRE&gt;proc template;
source Stat.Logistic.Graphics.EffectCont/ file="&amp;amp;path/reg.txt";
run;&lt;/PRE&gt;&lt;P&gt;I get log message as-&lt;/P&gt;&lt;P&gt;"link Stat.Logistic.Graphics.EffectCont to Common.Zreg.Graphics.EffectCont;"&lt;/P&gt;&lt;P&gt;can someone tell me what does this above log message means ?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 17:52:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-logistic-effect-plot-using-GTL/m-p/926220#M364495</guid>
      <dc:creator>rs72</dc:creator>
      <dc:date>2024-04-28T17:52:08Z</dc:date>
    </item>
    <item>
      <title>Making header border lines invisible/white in selective columns with PROC REPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Making-header-border-lines-invisible-white-in-selective-columns/m-p/926219#M364494</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm creating an output that requires this header layout&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smackerz1988_1-1714045922018.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95851i5B9146D7E42375A0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smackerz1988_1-1714045922018.png" alt="smackerz1988_1-1714045922018.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I'm using this code&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=final out=view missing nowindows split="*" contents=" ";
   column pag ("MedDRA System Organ Class /* Preferred Term" (" " aesoc))    
    ("trt (N=&amp;amp;trt_count.)" ("arm1*(N=&amp;amp;arm1_count.)" ('Subjects with TEAE*n (%)' arm1))
    ("arm2*(N=&amp;amp;arm2_count.)" ('Subjects with TEAE*n (%)' arm2)))
    ord;
   define pag / order  order = internal noprint ;
   define aesoc  / display " " left flow style(header)=[just=l] STYLE(column)=[&amp;amp;col_style asis=on cellwidth=12.00cm];
   define ord / order order =  internal noprint;   
   define arm2 / " " display   center flow STYLE(column)=[&amp;amp;col_style cellwidth=7.00cm];
   define arm1 / " " display center   flow STYLE(column)=[&amp;amp;col_style cellwidth=7.00cm];
   

    compute after pag / style ={&amp;amp;line_small};
        line "";
    endcomp;

    break after pag / page;

compute before _page_ / left style={&amp;amp;tit_style};
   line "Table 1.4.3 Severe treatment-emergent adverse events by System Organ Class and Preferred Term with incidence of &amp;gt;=5% in at least one arm - Separately by TPC regimen - Safety Analysis Set";   
endcomp;

	compute before ord / style ={&amp;amp;line_small};
		line "";		
	endcomp;

 compute after _page_ / left style={&amp;amp;foot_style};
   line "Notes: NE: Not evaluable; SOC: System Organ Class; PT: Preferred Term; TEAE: Treatment-emergent adverse event. Adverse events were coded using the MedDRA dictionary, Version 26.1 and graded according to NCI CTCAE v5.0.";   
endcomp;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;However this is my ouput&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="smackerz1988_0-1714317401092.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/95981i683CA4BE3A0181DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="smackerz1988_0-1714317401092.png" alt="smackerz1988_0-1714317401092.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How am I able to make this border line for this column either not visibly or removed?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 15:17:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Making-header-border-lines-invisible-white-in-selective-columns/m-p/926219#M364494</guid>
      <dc:creator>smackerz1988</dc:creator>
      <dc:date>2024-04-28T15:17:46Z</dc:date>
    </item>
    <item>
      <title>find the count of variable by group</title>
      <link>https://communities.sas.com/t5/SAS-Programming/find-the-count-of-variable-by-group/m-p/926217#M364493</link>
      <description>&lt;P&gt;Hello all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have initially posted this inappropriately, am sorry. I am creating a better representation of the issue so I can get help on this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset with category (teachers, students) and a list of forms (form2, event46, case32) which they are expected to fill within 60days after the school resume. Event46 has a group variable (grp=A, B, C). That is someone can be in any of the group. Among the teachers and students, some did not fill the form (0), some filled the form within 30 days (1), and some filled the form within 60 days (2).&amp;nbsp;&lt;/P&gt;&lt;P&gt;The 0,1,2 represents the days that the form was filled below:&lt;/P&gt;&lt;P&gt;No form filled=0&lt;/P&gt;&lt;P&gt;Form filled within 0-30days=1&lt;/P&gt;&lt;P&gt;Form filled within 31-60days=2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I want&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 1:&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. If a teacher or student only filled form2 within 30days and did not fill event46 or case32 they should be in the form2 only column. Same apply for other forms.&lt;/P&gt;&lt;P&gt;If they filled the form after 30 days, they will be in the 31-60 days count by category.&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. If anyone filled more than one(1) forms either within 30 days or within 60 days or both, they should be in the multiple column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table 2:&lt;/P&gt;&lt;P&gt;3. Finally, I want a total of those who did not fill any form in both category(teacher or student).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have created a sample output and a demo dataset. Thanks so much for your help.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;data have;
input category $ form2 case32 event46 grp $;
datalines;
Teacher 1 0 0 .
Student 1 0 0 .
Teacher 0 1 0 .
Teacher 1 0 1 A
Teacher 0 0 1 C 
Teacher 0 0 1 B
Teacher 1 0 0 .
Student 0 1 1 C
Student 0 0 1 C
Student 0 0 1 C
Student 1 0 0 .
Student 0 1 0 .
Student 0 2 0 .
Teacher 1 1 1 B
Teacher 0 0 2 A 
Teacher 0 0 2 B
Teacher 2 0 0 .
Student 0 1 1 C
Teacher 0 0 0 .
Student 0 0 0 .
Student 0 0 1 B 
Teacher 0 0 1 B 
Teacher 0 2 0 .
Teacher 2 2 0 .
Student 0 1 0 .
Teacher 2 0 1 A
Student 0 0 1 A 
Teacher 0 0 0 .
Student 2 0 0 .
Teacher 0 0 2 C
Student 0 0 2 C
Student 0 0 2 B
Student 0 0 2 A
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;The expected output should look like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Form2&lt;/P&gt;&lt;P&gt;only&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Case32 only&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Event46 A&lt;/P&gt;&lt;P&gt;only&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Event46 B&lt;/P&gt;&lt;P&gt;only&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Event46 C&lt;/P&gt;&lt;P&gt;Only&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Multiple&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;STRONG&gt;Total&lt;/STRONG&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Teacher fill form within 0-30 days&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt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lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Student who did not complete any form within 0-60 days&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Total&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 14:54:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/find-the-count-of-variable-by-group/m-p/926217#M364493</guid>
      <dc:creator>CathyVI</dc:creator>
      <dc:date>2024-04-28T14:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Need Advice on Handling High-Dimensional Data in Data Science Project</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Need-Advice-on-Handling-High-Dimensional-Data-in-Data-Science/m-p/926216#M10768</link>
      <description>&lt;P&gt;Also, have you already tried some of the suggestions from the &lt;A href="https://www.reddit.com/r/datascience/comments/1cet8nw/need_advice_on_handling_highdimensional_data_in/" target="_blank" rel="noopener"&gt;Reddit thread&lt;/A&gt;&amp;nbsp;you copied your post from, e.g., to "aggregate the 100+ categories into a smaller set of categories"?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 13:44:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Need-Advice-on-Handling-High-Dimensional-Data-in-Data-Science/m-p/926216#M10768</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2024-04-28T13:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need Advice on Handling High-Dimensional Data in Data Science Project</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Need-Advice-on-Handling-High-Dimensional-Data-in-Data-Science/m-p/926215#M10767</link>
      <description>&lt;P&gt;Can you describe the project you are working on? Can you tell us what the desired outcome(s) is of the analysis of this data? When you say you "need advice on handling", well there are a gazillion ways to "handle" such data and unless we know what desired outcome(s) are, we can't really give you good advice.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 12:44:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Need-Advice-on-Handling-High-Dimensional-Data-in-Data-Science/m-p/926215#M10767</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-04-28T12:44:58Z</dc:date>
    </item>
    <item>
      <title>Need Advice on Handling High-Dimensional Data in Data Science Project</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Need-Advice-on-Handling-High-Dimensional-Data-in-Data-Science/m-p/926214#M10766</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;I’m relatively new to data science and currently working on a project that involves a dataset with over 60 columns. Many of these columns are categorical, with more than 100 unique values each.&lt;/P&gt;&lt;P&gt;My issue arises when I try to apply one-hot encoding to these categorical columns. It seems like I’m running into the curse of dimensionality problem, and I’m not quite sure how to proceed from here.&lt;/P&gt;&lt;P&gt;I’d really appreciate some advice or guidance on how to effectively handle high-dimensional data in this context. Are there alternative encoding techniques I should consider? Or perhaps there are preprocessing steps I’m overlooking?&lt;/P&gt;&lt;P&gt;Any insights or tips would be immensely helpful.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 11:57:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Need-Advice-on-Handling-High-Dimensional-Data-in-Data-Science/m-p/926214#M10766</guid>
      <dc:creator>tress</dc:creator>
      <dc:date>2024-04-28T11:57:46Z</dc:date>
    </item>
  </channel>
</rss>

