⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 m41 - producing descriptive statistics - 39 of 41.mht

📁 sas的考试样题
💻 MHT
📖 第 1 页 / 共 5 页
字号:
border=3D0>
  <TBODY>
  <TR>
    <TD align=3Dleft>
      <HR>
    </TD></TR></TBODY></TABLE>
<P><!-- InstanceBeginEditable name=3D"syntax" -->
<CENTER>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"85%" border=3D0>
  <TBODY>
  <TR>
    <TD><STRONG><A name=3DSyntax>Syntax</A></STRONG>=20
      <P><EM>To go to the page where a statement or option was =
presented, select=20
      a link.</EM> </P></TD></TR></TBODY></TABLE><BR></CENTER>
<P align=3Dcenter>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"85%" align=3Dcenter =
border=3D0>
  <TBODY>
  <TR>
    <TD>
      <BLOCKQUOTE>
        <DL>
          <DT><NOBR><STRONG><FONT color=3D#003399><A=20
          onmouseover=3D"window.status=3D'Display details on PROC MEANS =
syntax.'; "=20
          onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
          =
href=3D"http://www.sas.com/apps/OLTRN/59080/m41/m41_2.htm">PROC=20
          MEANS</A></FONT></STRONG><FONT color=3D#003399><A=20
          onmouseover=3D"window.status=3D'Display details on PROC MEANS =
syntax.'; "=20
          onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
          href=3D"http://www.sas.com/apps/OLTRN/59080/m41/m41_2.htm">=20
          =
&lt;<STRONG>DATA</STRONG>=3D<EM>SAS-data-set</EM>&gt;</A></FONT></NOBR>=20
          <DD><NOBR><FONT color=3D#003399><A=20
          onmouseover=3D"window.status=3D'Display details on specifying =
statistics.'; "=20
          onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
          =
href=3D"http://www.sas.com/apps/OLTRN/59080/m41/m41_3.htm">&lt;<EM>statis=
tic-keyword(s)</EM>&gt;</A>=20
          <A=20
          onmouseover=3D"window.status=3D'Display details on specifying =
options.'; "=20
          onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
          =
href=3D"http://www.sas.com/apps/OLTRN/59080/m41/m41_7.htm">&lt;<EM>option=
(s)</EM>&gt;</A></FONT></NOBR>=20

          <DD><NOBR><FONT color=3D#003399><A=20
          onmouseover=3D"window.status=3D'Display details on specifying =
variables.'; "=20
          onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
          =
href=3D"http://www.sas.com/apps/OLTRN/59080/m41/m41_9.htm">&lt;<STRONG>VA=
R</STRONG>=20
          <EM>variable(s)</EM>&gt;<STRONG>;</STRONG></A></FONT></NOBR>=20
          <DD><NOBR><FONT color=3D#003399><A=20
          onmouseover=3D"window.status=3D'Display details on CLASS group =
processing.'; "=20
          onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
          =
href=3D"http://www.sas.com/apps/OLTRN/59080/m41/m41_13.htm">&lt;<STRONG>C=
LASS</STRONG>=20
          <EM>variable(s)</EM>&gt;<STRONG>;</STRONG></A></FONT></NOBR>=20
          <DD><NOBR><FONT color=3D#003399><A=20
          onmouseover=3D"window.status=3D'Display details on BY group =
processing.'; "=20
          onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
          =
href=3D"http://www.sas.com/apps/OLTRN/59080/m41/m41_15.htm">&lt;<STRONG>B=
Y</STRONG>=20
          <EM>variable(s)</EM>&gt;<STRONG>;</STRONG></A></FONT></NOBR>=20
          <DD><NOBR><FONT color=3D#003399><A=20
          onmouseover=3D"window.status=3D'Display details on the OUTPUT =
statement.'; "=20
          onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
          =
href=3D"http://www.sas.com/apps/OLTRN/59080/m41/m41_19.htm">&lt;<STRONG>O=
UTPUT</STRONG>=20
          out<EM>=3DSAS-data-set=20
          =
statistic=3Dvariable(s)</EM>&gt;<STRONG>;</STRONG></A></FONT></NOBR>=20
          <DT><FONT color=3D#003399><STRONG>RUN;</STRONG></FONT> =
</DT></DL>
        <P>
        <DL>
          <DT><NOBR><A=20
          onmouseover=3D"window.status=3D'Display details on PROC MEANS =
syntax.'; "=20
          onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
          =
href=3D"http://www.sas.com/apps/OLTRN/59080/m41/m41_20.htm"><B>PROC=20
          SUMMARY</B>=20
          =
&lt;<STRONG>DATA</STRONG>=3D<EM>SAS-data-set</EM>&gt;</A></NOBR>=20
          <DD><NOBR><FONT =
color=3D#003399>&lt;<EM>statistic-keyword(s)</EM>&gt;=20
          &lt;<EM>option(s)</EM>&gt;</FONT></NOBR>=20
          <DD><NOBR><FONT color=3D#003399>&lt;<STRONG>VAR</STRONG>=20
          <EM>variable(s)</EM>&gt;<STRONG>;</STRONG></FONT></NOBR>=20
          <DD><NOBR><FONT color=3D#003399>&lt;<STRONG>CLASS</STRONG>=20
          <EM>variable(s)</EM>&gt;<STRONG>;</STRONG></FONT></NOBR>=20
          <DD><NOBR><FONT color=3D#003399>&lt;<STRONG>OUTPUT</STRONG>=20
          out<EM>=3DSAS-data-set =
</EM>&gt;<STRONG>;</STRONG></FONT></NOBR>=20
          <NOBR></NOBR>
          <DT><FONT color=3D#003399><STRONG>RUN;</STRONG></FONT> =
</DT></DL>
        <P>
        <DL>
          <DT><NOBR><FONT color=3D#003399><A=20
          onmouseover=3D"window.status=3D'Display details on PROC FREQ =
syntax.'; "=20
          onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
          =
href=3D"http://www.sas.com/apps/OLTRN/59080/m41/m41_23.htm"><STRONG>PROC =

          FREQ</STRONG> =
&lt;DATA=3D<EM>SAS-data-set</EM>&gt;</A></FONT></NOBR>=20
          <DD><NOBR></NOBR>
          <DD><NOBR><FONT color=3D#003399><A=20
          onmouseover=3D"window.status=3D'Display details on selecting =
variables.'; "=20
          onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
          =
href=3D"http://www.sas.com/apps/OLTRN/59080/m41/m41_29.htm"><STRONG>TABLE=
S</STRONG>=20
          <EM>variable-1*variable-2 </EM>&lt;* ...=20
          <EM>variable-n</EM>&gt;</A></FONT></NOBR>=20
          <DD><NOBR><FONT color=3D#003399><A=20
          onmouseover=3D"window.status=3D'Display details on specifying =
statistics.'; "=20
          onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
          =
href=3D"http://www.sas.com/apps/OLTRN/59080/m41/m41_36.htm"><STRONG>/</ST=
RONG>=20
          &lt;NOFREQ|NOPERCENT|NOROW|NOCOL&gt;</A> <A=20
          onmouseover=3D"window.status=3D'Display details on the LIST =
option.'; "=20
          onclick=3DsuggestBack() onmouseout=3D"window.status=3D''"=20
          =
href=3D"http://www.sas.com/apps/OLTRN/59080/m41/m41_34.htm">&lt;LIST&gt;<=
STRONG>;</STRONG></A></FONT></NOBR>=20

          <DT><FONT color=3D#003399><STRONG>RUN;</STRONG></FONT>=20
      </DT></DL></BLOCKQUOTE></TD></TR></TBODY></TABLE>
<CENTER>
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"85%" border=3D0>
  <TBODY>
  <TR>
    <TD align=3Dleft>
      <HR>
    </TD></TR></TBODY></TABLE><BR></CENTER><!-- InstanceEndEditable -->
<P><!-- InstanceBeginEditable name=3D"sampleprogram" -->
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"85%" border=3D0>
  <TBODY>
  <TR>
    <TD align=3Dleft><STRONG><A name=3DSample>Sample =
Programs</A></STRONG>=20
      <DL>
        <DT>
        <DD><PRE><FONT color=3D#003399>proc means data=3Dclinic.heart =
min max maxdec=3D1;</FONT>
<FONT color=3D#003399>   var arterial heart cardiac urinary;</FONT>
<FONT color=3D#003399>   class survive sex;</FONT>
<FONT color=3D#003399>run;</FONT>


<FONT color=3D#003399>proc summary data=3Dclinic.diabetes;
   var age height weight;
   class sex;
   output out=3Dwork.sum_gender
      mean=3DAvgAge AvgHeight AvgWeight;
run; </FONT>


<FONT color=3D#003399>proc freq data=3Dclinic.heart order=3Dfreq;</FONT>
<FONT color=3D#003399>   tables sex*survive*shock / nopercent =
list;</FONT>
<FONT color=3D#003399>run;</FONT></PRE></DD></DL>
      <P>
      <HR>
    </TD></TR></TBODY></TABLE><BR><!-- InstanceEndEditable -->
<P><!-- InstanceBeginEditable name=3D"pointstoremember" -->
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"85%" border=3D0>
  <TBODY>
  <TR>
    <TD align=3Dleft><STRONG><A name=3DPoints>Points to =
Remember</A></STRONG>=20
      <UL>
        <LI>In PROC MEANS, use a VAR statement to limit output to =
relevant=20
        variables. Exclude statistics for nominal variables such as=20
        <CODE>ID</CODE> or <CODE>ProductCode</CODE>.=20
        <P></P>
        <LI>By default, PROC MEANS prints the full width of each numeric =

        variable. Use the MAXDEC=3D option to limit decimal places and =
to improve=20
        legibility.=20
        <P></P>
        <LI>Data must be sorted for BY group processing. You might need =
to run=20
        PROC SORT before using PROC MEANS with a BY statement.=20
        <P></P>
        <LI>PROC MEANS and PROC SUMMARY produce the same results; =
however, the=20
        default output is different. PROC MEANS produces a report, =
whereas PROC=20
        SUMMARY produces an output data set.=20
        <P></P>
        <LI>If you do not include a TABLES statement, PROC FREQ produces =

        statistics for every variable in the data set.=20
        <P></P>
        <LI>Variables that have continuous numeric values can create a =
large=20
        amount of output. Use a TABLES statement to exclude such =
variables, or=20
        group their values by applying a FORMAT statement.=20
</LI></UL></TD></TR></TBODY></TABLE><!-- InstanceEndEditable =
--></CENTER><!-- #BeginLibraryItem "/Library/nav_regular_bottom.lbi" -->
<TABLE cellSpacing=3D0 cellPadding=3D0 width=3D"100%">
  <TBODY>
  <TR>
    <TD width=3D14><IMG height=3D7 alt=3D""=20
      =
src=3D"http://www.sas.com/apps/elearning/images/en/navimages/linebox.gif"=
=20
      width=3D14></TD>
    <TD colSpan=3D2><IMG height=3D7 alt=3D""=20
      =
src=3D"http://www.sas.com/apps/elearning/images/en/navimages/linegray.gif=
"=20
      width=3D"100%"></TD></TR>
  <TR>
    <TD>&nbsp;</TD>
    <TD vAlign=3Dtop><FONT face=3D"Verdana, Arial, Helvetica, Sans =
Serif"=20
      color=3Dgray size=3D1><A class=3Dcopyrightlink=20
      href=3D"javascript:%20openOther('../copyrite.htm')"><FONT=20
      face=3D"Arial, Helvetica, sans-serif">Copyright</FONT></A> <FONT=20
      face=3D"Arial, Helvetica, sans-serif">=A9 2003 SAS Institute Inc., =
Cary, NC,=20
      USA. All rights reserved.</FONT></FONT> <FONT=20
      face=3D"Arial, Helvetica, sans-serif"><BR><FONT color=3Dgray =
size=3D1><A=20
      class=3Dcopyrightlink href=3D"http://www.sas.com/Copyright.html"=20
      target=3D_blank>Terms of Use &amp; Legal Information</A> | <A=20
      class=3Dcopyrightlink href=3D"http://www.sas.com/Privacy.html"=20
      target=3D_blank>Privacy Statement</A></FONT> </FONT></TD>
    <TD width=3D60>
      <DIV align=3Dright><A=20
      onmouseover=3D"rOver('back2');window.status=3D'Display the =
previous page.';return true"=20

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -