<?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: Finding percentiles in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Hi-could-you-please-help-me-with-the-question-below/m-p/894921#M353514</link>
    <description>&lt;P&gt;Hi Miller,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have successfully written code to calculate the 75th percentile (or 3rd quartile) values for both credit limit and total transaction amount in our dataset, as outlined below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;proc means data = credit_nodup&lt;BR /&gt;qntldef=3&lt;BR /&gt;n median q1 q3;&lt;BR /&gt;var Credit_limit Total_Trans_Amt;&lt;BR /&gt;output out=credit_SummaryStats;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Now, I am facing a challenge in merging this 75th percentile data with the original dataset. I would greatly appreciate your guidance on how to accomplish this task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your assistance.&lt;/P&gt;&lt;P&gt;Warm regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2023 13:43:49 GMT</pubDate>
    <dc:creator>TuAnh</dc:creator>
    <dc:date>2023-09-19T13:43:49Z</dc:date>
    <item>
      <title>Hi could you please help me with the question below</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi-could-you-please-help-me-with-the-question-below/m-p/894918#M353512</link>
      <description>&lt;P&gt;[1.8] Produce detailed summary statistics for&lt;BR /&gt;credit limit and total transaction amount.&lt;/P&gt;&lt;P&gt;Find the 75th percentile (or 3rd quartile) values of&lt;BR /&gt;credit limit and total transaction amount. Filter the rows&lt;BR /&gt;in the `credit` dataset so that it contains only customers&lt;BR /&gt;who are above the 75th percentile for both variables.&lt;/P&gt;&lt;P&gt;Use a function to create a variable `Capacity` that contains&lt;BR /&gt;the customer's total transaction amount or credit limit,&lt;BR /&gt;whichever is higher&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 13:31:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi-could-you-please-help-me-with-the-question-below/m-p/894918#M353512</guid>
      <dc:creator>TuAnh</dc:creator>
      <dc:date>2023-09-19T13:31:37Z</dc:date>
    </item>
    <item>
      <title>Finding percentiles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi-could-you-please-help-me-with-the-question-below/m-p/894919#M353513</link>
      <description>&lt;P&gt;This seems like a homework problem. We are happy to help, if you can show us the code you have already written. But most people here will not do your homework for you.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 13:34:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi-could-you-please-help-me-with-the-question-below/m-p/894919#M353513</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-09-19T13:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Finding percentiles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi-could-you-please-help-me-with-the-question-below/m-p/894921#M353514</link>
      <description>&lt;P&gt;Hi Miller,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have successfully written code to calculate the 75th percentile (or 3rd quartile) values for both credit limit and total transaction amount in our dataset, as outlined below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;proc means data = credit_nodup&lt;BR /&gt;qntldef=3&lt;BR /&gt;n median q1 q3;&lt;BR /&gt;var Credit_limit Total_Trans_Amt;&lt;BR /&gt;output out=credit_SummaryStats;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Now, I am facing a challenge in merging this 75th percentile data with the original dataset. I would greatly appreciate your guidance on how to accomplish this task.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your assistance.&lt;/P&gt;&lt;P&gt;Warm regards,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 13:43:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi-could-you-please-help-me-with-the-question-below/m-p/894921#M353514</guid>
      <dc:creator>TuAnh</dc:creator>
      <dc:date>2023-09-19T13:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Finding percentiles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi-could-you-please-help-me-with-the-question-below/m-p/894922#M353515</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data = credit_nodup qntldef=3;
    var Credit_limit Total_Trans_Amt;
    output out=credit_SummaryStats p75= / autoname;
run;

/* Merge 75th percentile into original data set */
data combined;
    if _n_=1 then set credit_summarystats(drop=_type_ _freq_);
    set credit_nodup;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Sep 2023 13:49:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi-could-you-please-help-me-with-the-question-below/m-p/894922#M353515</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-09-19T13:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Finding percentiles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi-could-you-please-help-me-with-the-question-below/m-p/894924#M353516</link>
      <description>&lt;P&gt;Make sure to give names to the variables you want to hold the statistics of interest when you generate the summary dataset.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data = credit_nodup
  qntldef=3
  n median q1 q3
;
  var Credit_limit Total_Trans_Amt;
  output out=credit_SummaryStats n= median= q1= q3= / autoname;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;No need to "merge", just set the single observation dataset once and the values will be retained onto every observation read from the original dataset.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set credit_nodup;
  if _N_=1 then set credit_SummaryStats;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Sep 2023 13:51:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi-could-you-please-help-me-with-the-question-below/m-p/894924#M353516</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-09-19T13:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Finding percentiles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi-could-you-please-help-me-with-the-question-below/m-p/894935#M353521</link>
      <description>&lt;P&gt;Many thanks for help me out.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 15:11:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi-could-you-please-help-me-with-the-question-below/m-p/894935#M353521</guid>
      <dc:creator>TuAnh</dc:creator>
      <dc:date>2023-09-19T15:11:04Z</dc:date>
    </item>
    <item>
      <title>Re: Finding percentiles</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Hi-could-you-please-help-me-with-the-question-below/m-p/894936#M353522</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I am thankful for your support.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 15:11:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Hi-could-you-please-help-me-with-the-question-below/m-p/894936#M353522</guid>
      <dc:creator>TuAnh</dc:creator>
      <dc:date>2023-09-19T15:11:51Z</dc:date>
    </item>
  </channel>
</rss>

