<?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: SAS Code to calculate per participant(any variable) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-Code-to-calculate-per-participant-any-variable/m-p/616216#M180375</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/176514"&gt;@knargis160&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure that PROC MEANS is the better way to do this job.&lt;/P&gt;
&lt;P&gt;PROC FREQ or Proc SQL for example could be a better approach to compute frequencies.&lt;/P&gt;
&lt;P&gt;Could you please share a sample of data and the desired output?&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jan 2020 14:37:27 GMT</pubDate>
    <dc:creator>ed_sas_member</dc:creator>
    <dc:date>2020-01-09T14:37:27Z</dc:date>
    <item>
      <title>SAS Code to calculate per participant(any variable)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Code-to-calculate-per-participant-any-variable/m-p/616195#M180365</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to calculate number of comments made per post-I have post-id and data set which only contains comments.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means noprint data=comments; by studyid post_id ; var studyid;class week group;
output out=nc_perpost min=xxx; run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Can anyone help explaining more about "proc means noprint" and how should I verify my code.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 14:04:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Code-to-calculate-per-participant-any-variable/m-p/616195#M180365</guid>
      <dc:creator>knargis160</dc:creator>
      <dc:date>2020-01-09T14:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code to calculate per participant(any variable)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Code-to-calculate-per-participant-any-variable/m-p/616215#M180374</link>
      <description>&lt;OL&gt;
&lt;LI&gt;FORMAT your code. This spaghetti heap is not conducive to debugging and maintaining:
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=comments noprint;
by studyid post_id;
class week group;
var studyid;
output out=nc_perpost min=xxx;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;To verify the code, look at the resulting dataset (nc_perpost), and see if it meets your expectations.&lt;/LI&gt;
&lt;LI&gt;The NOPRINT option prevents creation of output via ODS.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 09 Jan 2020 14:34:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Code-to-calculate-per-participant-any-variable/m-p/616215#M180374</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-01-09T14:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code to calculate per participant(any variable)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Code-to-calculate-per-participant-any-variable/m-p/616216#M180375</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/176514"&gt;@knargis160&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure that PROC MEANS is the better way to do this job.&lt;/P&gt;
&lt;P&gt;PROC FREQ or Proc SQL for example could be a better approach to compute frequencies.&lt;/P&gt;
&lt;P&gt;Could you please share a sample of data and the desired output?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 14:37:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Code-to-calculate-per-participant-any-variable/m-p/616216#M180375</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-01-09T14:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code to calculate per participant(any variable)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Code-to-calculate-per-participant-any-variable/m-p/616220#M180377</link>
      <description>&lt;P&gt;Can you also add the code to get mean/std sum for number of participants per post in the same code&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 14:48:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Code-to-calculate-per-participant-any-variable/m-p/616220#M180377</guid>
      <dc:creator>knargis160</dc:creator>
      <dc:date>2020-01-09T14:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code to calculate per participant(any variable)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Code-to-calculate-per-participant-any-variable/m-p/616224#M180378</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=comments noprint n mean sum std;
	by studyid post_id;
	class week group;
	var studyid;
	output out=nc_perpost n= mean= std= sum= / autoname;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jan 2020 15:11:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Code-to-calculate-per-participant-any-variable/m-p/616224#M180378</guid>
      <dc:creator>ed_sas_member</dc:creator>
      <dc:date>2020-01-09T15:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code to calculate per participant(any variable)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Code-to-calculate-per-participant-any-variable/m-p/616254#M180393</link>
      <description>&lt;P&gt;Can you give a example code in proc sql or proc freq about how to calculate total number of (any variable) per any variable?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 16:28:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Code-to-calculate-per-participant-any-variable/m-p/616254#M180393</guid>
      <dc:creator>knargis160</dc:creator>
      <dc:date>2020-01-09T16:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code to calculate per participant(any variable)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Code-to-calculate-per-participant-any-variable/m-p/616258#M180394</link>
      <description>&lt;P&gt;&lt;A href="https://www.listendata.com/2015/01/sas-detailed-explanation-of-proc-means.html" target="_blank"&gt;https://www.listendata.com/2015/01/sas-detailed-explanation-of-proc-means.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FREQ won't calculate STD. SQL can but it's not as efficient as PROC MEANS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2020 16:32:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Code-to-calculate-per-participant-any-variable/m-p/616258#M180394</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-09T16:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Code to calculate per participant(any variable)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-Code-to-calculate-per-participant-any-variable/m-p/616478#M180487</link>
      <description>&lt;P&gt;My spider sense is tingling.&amp;nbsp; It seems you might need a lot of help on this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to compute statistics (mean, std, sum) on a numeric variable. that variable has to exist in your data set.&amp;nbsp; I'm not sure from your post that it actually exists.&amp;nbsp; Perhaps your data set has a single observation per post, and you have to count those first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does your data set really contain variables named WEEK and GROUP?&amp;nbsp; If so, what do they represent and how do they affect what you want to count?&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 14:19:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-Code-to-calculate-per-participant-any-variable/m-p/616478#M180487</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2020-01-10T14:19:43Z</dc:date>
    </item>
  </channel>
</rss>

