<?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 mean,median,min,max, quantiles etc. in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/mean-median-min-max-quantiles-etc/m-p/930586#M41848</link>
    <description>&lt;P&gt;How can I fix this code? _LABEL_ can't be found. And the results&amp;nbsp;Pctls_trp_trp, imo dosen't look very nice. with _NAME_ and col1-col14.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can someone help me with the _LABEL_ ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc univariate data=sashelp.shoes noprint;
   var Sales Inventory Returns;
   output out=Pctls pctlpts  = 5 10 20 25 30 40 50 60 75 80 90 95
                    pctlpre  = Sales_ Inventory_ Returns_ 
                    pctlname =  pctl5 pctl10 pctl20 pctl25 pctl30 pctl40 
                               pctl50 pctl60 pctl75 pctl80 pctl90 pctl95
					mean=Sales_mean Inventory_mean Returns_mean
					std =Sales_std  Inventory_std  Returns_std ;
run;

PROC TRANSPOSE data=Pctls out=Pctls_trp;
run;

data Pctls_trp;
 set Pctls_trp;
 _NAME_=scan(_NAME_,1,'_');
run;

proc sort data=Pctls_trp;
 by _NAME_;
run;

proc transpose data=Pctls_trp out=Pctls_trp_trp;
 by _NAME_;
 id _LABEL_;
 var col1;
run;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 03 Jun 2024 09:24:30 GMT</pubDate>
    <dc:creator>melhaf</dc:creator>
    <dc:date>2024-06-03T09:24:30Z</dc:date>
    <item>
      <title>mean,median,min,max, quantiles etc.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/mean-median-min-max-quantiles-etc/m-p/930586#M41848</link>
      <description>&lt;P&gt;How can I fix this code? _LABEL_ can't be found. And the results&amp;nbsp;Pctls_trp_trp, imo dosen't look very nice. with _NAME_ and col1-col14.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can someone help me with the _LABEL_ ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc univariate data=sashelp.shoes noprint;
   var Sales Inventory Returns;
   output out=Pctls pctlpts  = 5 10 20 25 30 40 50 60 75 80 90 95
                    pctlpre  = Sales_ Inventory_ Returns_ 
                    pctlname =  pctl5 pctl10 pctl20 pctl25 pctl30 pctl40 
                               pctl50 pctl60 pctl75 pctl80 pctl90 pctl95
					mean=Sales_mean Inventory_mean Returns_mean
					std =Sales_std  Inventory_std  Returns_std ;
run;

PROC TRANSPOSE data=Pctls out=Pctls_trp;
run;

data Pctls_trp;
 set Pctls_trp;
 _NAME_=scan(_NAME_,1,'_');
run;

proc sort data=Pctls_trp;
 by _NAME_;
run;

proc transpose data=Pctls_trp out=Pctls_trp_trp;
 by _NAME_;
 id _LABEL_;
 var col1;
run;
/* end of program */&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Jun 2024 09:24:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/mean-median-min-max-quantiles-etc/m-p/930586#M41848</guid>
      <dc:creator>melhaf</dc:creator>
      <dc:date>2024-06-03T09:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: mean,median,min,max, quantiles etc.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/mean-median-min-max-quantiles-etc/m-p/930587#M41849</link>
      <description>&lt;P&gt;Your program runs without errors when I run it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps the results don't look nice to you, what do you want the results to look like? You haven't said. Please explain or better yet show us what you want the results to look like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Usually there are much better ways to produce tables (PROC REPORT, PROC TABULATE) that don't require transpose or double transpose.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 09:59:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/mean-median-min-max-quantiles-etc/m-p/930587#M41849</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-06-03T09:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: mean,median,min,max, quantiles etc.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/mean-median-min-max-quantiles-etc/m-p/930592#M41850</link>
      <description>&lt;P&gt;proc univariate data=sashelp.shoes noprint;&lt;BR /&gt;NOTE: Writing HTML Body file: sashtml.htm&lt;BR /&gt;2 var Sales Inventory Returns;&lt;BR /&gt;3 output out=Pctls pctlpts = 5 10 20 25 30 40 50 60 75 80 90 95&lt;BR /&gt;4 pctlpre = Sales_ Inventory_ Returns_&lt;BR /&gt;5 pctlname = pctl5 pctl10 pctl20 pctl25 pctl30 pctl40&lt;BR /&gt;6 pctl50 pctl60 pctl75 pctl80 pctl90 pctl95&lt;BR /&gt;7 mean=Sales_mean Inventory_mean Returns_mean&lt;BR /&gt;8 std =Sales_std Inventory_std Returns_std ;&lt;BR /&gt;9 run;&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.PCTLS has 1 observations and 42 variables.&lt;BR /&gt;NOTE: PROCEDURE UNIVARIATE used (Total process time):&lt;BR /&gt;real time 0.63 seconds&lt;BR /&gt;cpu time 0.31 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;10&lt;BR /&gt;11 PROC TRANSPOSE data=Pctls out=Pctls_trp;&lt;BR /&gt;12 run;&lt;/P&gt;&lt;P&gt;NOTE: There were 1 observations read from the data set WORK.PCTLS.&lt;BR /&gt;NOTE: The data set WORK.PCTLS_TRP has 42 observations and 2 variables.&lt;BR /&gt;NOTE: PROCEDURE TRANSPOSE used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;13&lt;BR /&gt;14 data Pctls_trp;&lt;BR /&gt;15 set Pctls_trp;&lt;BR /&gt;16 _NAME_=scan(_NAME_,1,'_');&lt;BR /&gt;17 run;&lt;/P&gt;&lt;P&gt;NOTE: There were 42 observations read from the data set WORK.PCTLS_TRP.&lt;BR /&gt;NOTE: The data set WORK.PCTLS_TRP has 42 observations and 2 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;18&lt;BR /&gt;19 proc sort data=Pctls_trp;&lt;BR /&gt;20 by _NAME_;&lt;BR /&gt;21 run;&lt;/P&gt;&lt;P&gt;NOTE: There were 42 observations read from the data set WORK.PCTLS_TRP.&lt;BR /&gt;NOTE: The data set WORK.PCTLS_TRP has 42 observations and 2 variables.&lt;BR /&gt;NOTE: PROCEDURE SORT used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;22&lt;BR /&gt;23 proc transpose data=Pctls_trp out=Pctls_trp_trp;&lt;BR /&gt;24 by _NAME_;&lt;BR /&gt;25 id _LABEL_;&lt;BR /&gt;&lt;STRONG&gt;ERROR: Variable _LABEL_ not found.&lt;/STRONG&gt;&lt;BR /&gt;26 var col1;&lt;BR /&gt;27 run;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.PCTLS_TRP_TRP may be incomplete. When this step was stopped&lt;BR /&gt;there were 0 observations and 0 variables.&lt;BR /&gt;NOTE: PROCEDURE TRANSPOSE used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;28 /* end of program */&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 10:05:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/mean-median-min-max-quantiles-etc/m-p/930592#M41850</guid>
      <dc:creator>melhaf</dc:creator>
      <dc:date>2024-06-03T10:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: mean,median,min,max, quantiles etc.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/mean-median-min-max-quantiles-etc/m-p/930593#M41851</link>
      <description>&lt;P&gt;I don't know why you get this error, I do not get this error.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1     proc univariate data=sashelp.shoes noprint;
2        var Sales Inventory Returns;
3        output out=Pctls pctlpts  = 5 10 20 25 30 40 50 60 75 80 90 95
4                         pctlpre  = Sales_ Inventory_ Returns_
5                         pctlname =  pctl5 pctl10 pctl20 pctl25 pctl30 pctl40
6                                    pctl50 pctl60 pctl75 pctl80 pctl90 pctl95
7                         mean=Sales_mean Inventory_mean Returns_mean
8                         std =Sales_std  Inventory_std  Returns_std ;
9     run;

NOTE: The data set WORK.PCTLS has 1 observations and 42 variables.
NOTE: Compressing data set WORK.PCTLS increased size by 100.00 percent.
      Compressed is 2 pages; un-compressed would require 1 pages.
NOTE: PROCEDURE UNIVARIATE used (Total process time):
      real time           0.10 seconds
      cpu time            0.04 seconds


10
11    PROC TRANSPOSE data=Pctls out=Pctls_trp;
12    run;

NOTE: There were 1 observations read from the data set WORK.PCTLS.
NOTE: The data set WORK.PCTLS_TRP has 42 observations and 3 variables.
NOTE: Compressing data set WORK.PCTLS_TRP increased size by 100.00 percent.
      Compressed is 2 pages; un-compressed would require 1 pages.
NOTE: PROCEDURE TRANSPOSE used (Total process time):
      real time           0.04 seconds
      cpu time            0.04 seconds


13
14    data Pctls_trp;
15     set Pctls_trp;
16     _NAME_=scan(_NAME_,1,'_');
17    run;

NOTE: There were 42 observations read from the data set WORK.PCTLS_TRP.
NOTE: The data set WORK.PCTLS_TRP has 42 observations and 3 variables.
NOTE: Compressing data set WORK.PCTLS_TRP increased size by 100.00 percent.
      Compressed is 2 pages; un-compressed would require 1 pages.
NOTE: DATA statement used (Total process time):
      real time           0.10 seconds
      cpu time            0.07 seconds


18
19    proc sort data=Pctls_trp;
20     by _NAME_;
21    run;

NOTE: There were 42 observations read from the data set WORK.PCTLS_TRP.
NOTE: The data set WORK.PCTLS_TRP has 42 observations and 3 variables.
NOTE: Compressing data set WORK.PCTLS_TRP increased size by 100.00 percent.
      Compressed is 2 pages; un-compressed would require 1 pages.
NOTE: PROCEDURE SORT used (Total process time):
      real time           0.05 seconds
      cpu time            0.03 seconds


22
23    proc transpose data=Pctls_trp out=Pctls_trp_trp;
24     by _NAME_;
25     id _LABEL_;
26     var col1;
27    run;

NOTE: There were 42 observations read from the data set WORK.PCTLS_TRP.
NOTE: The data set WORK.PCTLS_TRP_TRP has 3 observations and 43 variables.
NOTE: Compressing data set WORK.PCTLS_TRP_TRP increased size by 100.00 percent.
      Compressed is 2 pages; un-compressed would require 1 pages.
NOTE: PROCEDURE TRANSPOSE used (Total process time):
      real time           0.05 seconds
      cpu time            0.04 seconds
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please answer my question about what output you want to see.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 10:24:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/mean-median-min-max-quantiles-etc/m-p/930593#M41851</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-06-03T10:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: mean,median,min,max, quantiles etc.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/mean-median-min-max-quantiles-etc/m-p/930594#M41852</link>
      <description>&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/p02de158iswt9tn1eu1nt59jmoae.htm" target="_blank" rel="noopener"&gt;System option LABEL&lt;/A&gt; might be set to NOLABEL. In this case&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options label;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;should help.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 10:28:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/mean-median-min-max-quantiles-etc/m-p/930594#M41852</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2024-06-03T10:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: mean,median,min,max, quantiles etc.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/mean-median-min-max-quantiles-etc/m-p/930595#M41853</link>
      <description>&lt;P&gt;Is this the output you want?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output summary=summary;
proc means data=sashelp.shoes n mean std p5 p10 p20 /* I'm lazy, you type the rest */ stackods;
var sales inventory returns;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 10:49:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/mean-median-min-max-quantiles-etc/m-p/930595#M41853</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2024-06-03T10:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: mean,median,min,max, quantiles etc.</title>
      <link>https://communities.sas.com/t5/New-SAS-User/mean-median-min-max-quantiles-etc/m-p/930596#M41854</link>
      <description>&lt;P&gt;That looks&amp;nbsp; (at first glance) way better Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 11:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/mean-median-min-max-quantiles-etc/m-p/930596#M41854</guid>
      <dc:creator>melhaf</dc:creator>
      <dc:date>2024-06-03T11:05:47Z</dc:date>
    </item>
  </channel>
</rss>

