<?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: actual vs. expected enrollment graph in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701591#M25778</link>
    <description>&lt;P&gt;So what exactly in your data represents "actual" or "expected"?? I do not see anything to differentiate between the values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example of what you date might look like to accomplish your desired graph using a generic x and y value.&lt;/P&gt;
&lt;PRE&gt;data example;
   input x y z $;
datalines;
1 2 A
2 2 A
3 4 A
5 4 A
6 3 A
1 1 E
2 2 E
3 3 E
4 4 E
5 5 E
6 6 E
;

proc sgplot data=example;
   series x=x y=y /group=z;
run;
&lt;/PRE&gt;
&lt;P&gt;A group variable lets you display different properties such as A(ctual) and E(xpected) with different appearance and pretty simple code. BUT you have to include the group values for a variable.&lt;/P&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:58:39 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2020-11-25T16:58:39Z</dc:date>
    <item>
      <title>actual vs. expected enrollment graph</title>
      <link>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701582#M25777</link>
      <description>&lt;P&gt;Hello SAS Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to create an actual vs. expected enrollment graph, like the following&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mclancy_0-1606320499875.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51995i32B48E4FC013B65C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mclancy_0-1606320499875.png" alt="mclancy_0-1606320499875.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In my dataset, dates (coming from a few different sources) have been condensed down to year/month - this is an example of the actual data&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;id&lt;/TD&gt;&lt;TD&gt;year_month&lt;/TD&gt;&lt;TD&gt;have_data&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;202010&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2&lt;/TD&gt;&lt;TD&gt;201912&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;3&lt;/TD&gt;&lt;TD&gt;201911&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;201911&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;202010&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;6&lt;/TD&gt;&lt;TD&gt;201912&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;202001&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;202001&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Target enrollment is 1900 participants (~4 participants/day), I do not have a date when the targeted enrollment is expected to be met&lt;/P&gt;&lt;DIV&gt;I started on trying to work on the expected numbers (excluding holidays, institution days off) which I can do looking back but as no final enrollment date I am stumped.&lt;/DIV&gt;&lt;DIV&gt;proc freq data=have;&lt;BR /&gt;table year_month / out=counts (keep=year_month count) nopercent nocum;&lt;BR /&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For the graph, I think it's probably proc sgplot but how do I&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1. include the counts from proc contents above and&lt;/DIV&gt;&lt;DIV&gt;2. how to include the expected of 1900 so the 2 lines are on the same graph&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;proc sgplot data=have&lt;BR /&gt;(where=(date &amp;lt;= "31OCT2020"d and have_data = 1));&lt;BR /&gt;title "Enrollment: Actual vs. Expected";&lt;BR /&gt;series x=year_month y=count;&lt;BR /&gt;series ???&lt;BR /&gt;run;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;TIA,&lt;/DIV&gt;&lt;DIV&gt;Margaret&lt;/DIV&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701582#M25777</guid>
      <dc:creator>urban58</dc:creator>
      <dc:date>2020-11-25T16:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: actual vs. expected enrollment graph</title>
      <link>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701591#M25778</link>
      <description>&lt;P&gt;So what exactly in your data represents "actual" or "expected"?? I do not see anything to differentiate between the values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is an example of what you date might look like to accomplish your desired graph using a generic x and y value.&lt;/P&gt;
&lt;PRE&gt;data example;
   input x y z $;
datalines;
1 2 A
2 2 A
3 4 A
5 4 A
6 3 A
1 1 E
2 2 E
3 3 E
4 4 E
5 5 E
6 6 E
;

proc sgplot data=example;
   series x=x y=y /group=z;
run;
&lt;/PRE&gt;
&lt;P&gt;A group variable lets you display different properties such as A(ctual) and E(xpected) with different appearance and pretty simple code. BUT you have to include the group values for a variable.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:58:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701591#M25778</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-25T16:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: actual vs. expected enrollment graph</title>
      <link>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701605#M25779</link>
      <description>You can use the LINEPARM statement to graph the expected line if you know the intercept and slope (~4/day or ~120/month). &lt;BR /&gt;If you want it to be daily to account for the different number of days in a month you'll need to pre-create the data that includes the expected value so you can graph it as well.</description>
      <pubDate>Wed, 25 Nov 2020 17:19:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701605#M25779</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-11-25T17:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: actual vs. expected enrollment graph</title>
      <link>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701607#M25780</link>
      <description>&lt;P&gt;You could do this two ways - have Actual and Expected in two rows, or two variables; both have advantages.&amp;nbsp; Here's the two variables solution.&amp;nbsp; I also show how to generate your Expected - I assume "have" is a dataset you already have (your PROC FREQ output); the for_plot dataset adds the expected (it just adds 4 every time), and makes the year _month variable a proper date variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;**have is just me making dummy data, this is output from PROC FREQ above;
data have;
  count=0;
  call streaminit(7);  
  do year_month = 202001 to 202011;
    count + floor(rand('Uniform',1,8));
    output;
  end;
run;

*here we add the Expected variable and reformat year_month;
data for_plot;
  set have;
  expected+4;
  year_month_dt = input(cats(year_month,'01'),yymmdd8.);
  format year_month_dt yymmn6.;
run;

*and here we plot, using series (or vline also is okay);
proc sgplot data=for_plot;
  series x=year_month_dt y=count /lineattrs=(color=red);
  series x=year_month_dt y=expected /lineattrs=(color=blue);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here is the output from that, from here you can change things to add formatting however you want.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snoopy369_0-1606324880446.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/51997i523E4B76677A9022/image-size/medium?v=v2&amp;amp;px=400" role="button" title="snoopy369_0-1606324880446.png" alt="snoopy369_0-1606324880446.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I mentioned in your SASL post, you could also see this paper for more details on how to make this kind of plot:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.pharmasug.org/proceedings/china2018/DV/Pharmasug-China-2018-DV34.pdf" target="_blank"&gt;https://www.pharmasug.org/proceedings/china2018/DV/Pharmasug-China-2018-DV34.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 17:21:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701607#M25780</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2020-11-25T17:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: actual vs. expected enrollment graph</title>
      <link>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701609#M25781</link>
      <description>LINEPARM is a good suggestion.  Another possibility is, in addition to the expected line, to graph a REFLINE at exactly 1900 (straight horizontal), to see what the final target is since you say you don't have a specific day you expect to hit it at.</description>
      <pubDate>Wed, 25 Nov 2020 17:23:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701609#M25781</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2020-11-25T17:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: actual vs. expected enrollment graph</title>
      <link>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701611#M25782</link>
      <description>Hello ballardw,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Unfortunately, my data is not so simple as your example solution.&lt;BR /&gt;&lt;BR /&gt;For expected enrollment, I only a value of 1900 participants expected (~4/day*) - nothing more&lt;BR /&gt;&lt;BR /&gt;*Mon-Fri, excluding institution holidays&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For actual enrollment, this is how the data looks&lt;BR /&gt;&lt;BR /&gt;data have;&lt;BR /&gt;&lt;BR /&gt;   input id year_month have_data ;&lt;BR /&gt;&lt;BR /&gt;datalines;&lt;BR /&gt;&lt;BR /&gt;1     202010      1&lt;BR /&gt;&lt;BR /&gt;2     201912      1&lt;BR /&gt;&lt;BR /&gt;3     201911      1&lt;BR /&gt;&lt;BR /&gt;4     201911      1&lt;BR /&gt;&lt;BR /&gt;5     202010      1&lt;BR /&gt;&lt;BR /&gt;6     201912      1&lt;BR /&gt;&lt;BR /&gt;7     202001      1&lt;BR /&gt;&lt;BR /&gt;8     202001      1&lt;BR /&gt;&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;proc sgplot data=have&lt;BR /&gt;&lt;BR /&gt;(where=( have_data = 1));&lt;BR /&gt;&lt;BR /&gt;title "Enrollment: Actual vs. Expected";&lt;BR /&gt;&lt;BR /&gt;   series x=id y=year_month;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;graph looks strange and does not include expected.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Margaret&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Nov 2020 17:26:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701611#M25782</guid>
      <dc:creator>urban58</dc:creator>
      <dc:date>2020-11-25T17:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: actual vs. expected enrollment graph</title>
      <link>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701622#M25783</link>
      <description>Where is your expected data in the data set? How is SAS supposed to know about the 4 per day?</description>
      <pubDate>Wed, 25 Nov 2020 17:48:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701622#M25783</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-11-25T17:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: actual vs. expected enrollment graph</title>
      <link>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701635#M25784</link>
      <description>&lt;P&gt;Given your exact requirements, it seems like you're going to have to figure out your expected day by day, or else be satisfied with an estimate.&amp;nbsp; Here's one example of day by day.&amp;nbsp; Note the use of the HOLIDAY function - you'll need to customize that to your specific needs, look up the function's documentation to see what the possible holidays are.&amp;nbsp; I don't know what you consider holidays in your situation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I make a dummy dataset with respondent level data, then an expected dataset with day-level data, then combine them, fix the yearmonth variable to be consistent between the two, and then use PROC FREQ to get the CUM_FREQ variable which is what we want - cumulative enrollment.&amp;nbsp; I added the MARKERS option to show you how that works, but you don't have to use it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
  call streaminit(7);  
  do year_month = 202001 to 202011;
    do _x = 1 to floor(rand('Uniform',40,120));
      output;
    end;
  end;
  drop _x;
run;

data expected;
  do dt = '02JAN2020'd to '30NOV2020'd;
    if weekday(dt) in (2:6) then do;
      if ( dt eq holiday('mlk',2020)
      	or dt eq holiday('uspresidents',2020)
      	or dt eq holiday('memorial',2020)
      	or dt eq holiday('usindependence',2020)
      	or dt eq holiday('labor',2020)
      	or dt eq holiday('columbus',2020)
      	or dt eq holiday('veteransusg',2020)
      	or dt eq holiday('thanksgiving',2020)
      	or dt eq holiday('christmas',2020)
      ) then continue;
      do _i = 1 to 4;
        output;
      end;
    end;
  end;
  keep dt;
  format dt date9.;
run;

data for_plot;
  set have(in=_have) expected(in=_exp);
  if _have then group='A';
  else group='E';
  if group='A' then do;
  	year_month_dt = input(cats(year_month,'01'),yymmdd8.);
  end;
  else year_month_dt = dt;
  format year_month_dt yymmn6.;  	
run;

proc freq data=for_plot;
  by group;
  tables year_month_dt/out=freqs_for_plot outcum; 
run;

proc sgplot data=freqs_for_plot;
  vline year_month_dt /group=group response=cum_freq markers;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And the chart it produces:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snoopy369_0-1606327895399.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/52002i52F877498AF288FE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="snoopy369_0-1606327895399.png" alt="snoopy369_0-1606327895399.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 18:11:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701635#M25784</guid>
      <dc:creator>snoopy369</dc:creator>
      <dc:date>2020-11-25T18:11:46Z</dc:date>
    </item>
    <item>
      <title>Re: actual vs. expected enrollment graph</title>
      <link>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701697#M25796</link>
      <description>&lt;P&gt;Wow, I ran your code Snoopy and loved the graphs – need to digest but thanks so much.&lt;/P&gt;
&lt;P&gt;While you were doing that, I was working on coming up with my expected – not totally finished – need to exclude a few more working days – put it at the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your code&lt;/P&gt;
&lt;P&gt;do _i = 1 to 4; - is this where you assigned 4 participants for each valid date?&lt;/P&gt;
&lt;P&gt;If I change do dt = '02JAN2020'd to '30NOV2020'd; to a later date (I’ve calculated that at the rate of 4 ppts/day, enrolled would be expected to be done by September 2021) will the expected line keep going while the actual will stop?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;What does this mean? if weekday(dt) in (2:6) then do;&lt;/P&gt;
&lt;P&gt;Many thanks to all for your help, I need to read ALL the answers carefully but realize the holiday is here and you will be off to better things.&lt;/P&gt;
&lt;P&gt;Margaret&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data target (keep=begin);&lt;/P&gt;
&lt;P&gt;format begin date9.;&lt;/P&gt;
&lt;P&gt;array holidays(10);&lt;/P&gt;
&lt;P&gt;do date = '22OCT2019'd to '31OCT2021'd ;&lt;/P&gt;
&lt;P&gt;if date eq intnx('year',date,0,'b') then do;&lt;/P&gt;
&lt;P&gt;call missing(of holidays(*));&lt;/P&gt;
&lt;P&gt;i=0;&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;if date eq holiday('NEWYEAR', year(date)) or&lt;/P&gt;
&lt;P&gt;date eq holiday('MLK',year(date)) or&lt;/P&gt;
&lt;P&gt;date eq holiday('USPRESIDENTS',year(date)) or&lt;/P&gt;
&lt;P&gt;date eq holiday('MEMORIAL', year(date)) or&lt;/P&gt;
&lt;P&gt;date eq holiday('USINDEPENDENCE',year(date)) or&lt;/P&gt;
&lt;P&gt;date eq holiday('LABOR',year(date)) or&lt;/P&gt;
&lt;P&gt;date eq holiday('COLUMBUS',year(date)) or&lt;/P&gt;
&lt;P&gt;date eq holiday('VETERANSUSG',year(date)) or&lt;/P&gt;
&lt;P&gt;date eq holiday('THANKSGIVING', year(date)) or&lt;/P&gt;
&lt;P&gt;date eq holiday('CHRISTMAS', year(date)) then do;&lt;/P&gt;
&lt;P&gt;i+1;&lt;/P&gt;
&lt;P&gt;holidays(i)=date;&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;if not(date in holidays or weekday(date) in (1,7)) then do;&lt;/P&gt;
&lt;P&gt;season=1;&lt;/P&gt;
&lt;P&gt;begin=date;&lt;/P&gt;
&lt;P&gt;output;&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;data target2; *n=254 days;&lt;/P&gt;
&lt;P&gt;set target;&lt;/P&gt;
&lt;P&gt;if begin in('23DEC2019'd,'24DEC2019'd,'26DEC2019'd,'27DEC2019'd,'30DEC2019'd,'31DEC2019'd) then DELETE; *need to also add days to remove for 2020;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options intervalds=(workdays=target2);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data expected;&lt;/P&gt;
&lt;P&gt;days=intck('workdays','22OCT2019'd,'30SEP2021'd);&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 21:10:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701697#M25796</guid>
      <dc:creator>urban58</dc:creator>
      <dc:date>2020-11-25T21:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: actual vs. expected enrollment graph</title>
      <link>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701705#M25798</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/322157"&gt;@urban58&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;What does this mean? if weekday(dt) in (2:6) then do;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;WEEKDAY is a SAS function that returns a number of the day of a week from a date value with 1= Sunday through 7=Saturday. The IN operator compares the value before IN to a list of items in parentheses. The 2:6 is a shorthand list of all &lt;STRONG&gt;integers&lt;/STRONG&gt; 2 through 6. So checking to see if the date is Monday through Friday.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 22:03:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/actual-vs-expected-enrollment-graph/m-p/701705#M25798</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-25T22:03:50Z</dc:date>
    </item>
  </channel>
</rss>

