<?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: trend analysis in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/trend-analysis/m-p/567966#M27953</link>
    <description>&lt;P&gt;It would be nice to see a graphical view as well.&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2019 15:39:06 GMT</pubDate>
    <dc:creator>mauri0623</dc:creator>
    <dc:date>2019-06-21T15:39:06Z</dc:date>
    <item>
      <title>trend analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/trend-analysis/m-p/567763#M27944</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We receive daily data. The daily data for each day contain missing for the variables alc, odn, accounting that we have to send back to the customer to validate and populate the missing. We want to look at each daily data and see the trend of missing from each day for those variables. The reason we want to do is to look at the trend to know the differences and see how we can improve the process to get less missing. I am looking for some statistical procedures that shows the daily trend.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mauri&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 20:19:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/trend-analysis/m-p/567763#M27944</guid>
      <dc:creator>mauri0623</dc:creator>
      <dc:date>2019-06-20T20:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: trend analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/trend-analysis/m-p/567898#M27950</link>
      <description>&lt;P&gt;Please provide samples of the data and tell us what results you would expect from the example data. Probably the best would be a single data set that has a DAY variable with values 1, 2, 3, ....&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 13:09:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/trend-analysis/m-p/567898#M27950</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-06-21T13:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: trend analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/trend-analysis/m-p/567954#M27951</link>
      <description>&lt;P&gt;Thank you for the quick reply. The daily sas dataset has 50,000 obs and 76 vars. One of the variables is called batch_id(20190518-0000000001). The odn, ipac, and accounting fields contain a lot of missing. We what to look at the trend of missing on a daily basis from these daily files. Please see 10 observation of the dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 15:18:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/trend-analysis/m-p/567954#M27951</guid>
      <dc:creator>mauri0623</dc:creator>
      <dc:date>2019-06-21T15:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: trend analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/trend-analysis/m-p/567966#M27953</link>
      <description>&lt;P&gt;It would be nice to see a graphical view as well.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 15:39:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/trend-analysis/m-p/567966#M27953</guid>
      <dc:creator>mauri0623</dc:creator>
      <dc:date>2019-06-21T15:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: trend analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/trend-analysis/m-p/567969#M27954</link>
      <description>&lt;P&gt;well, that's not really what I wanted, but here is some sample data that I invented. I suggest you use PROC MEANS NMISS and perform aBY-group analysis of the missing values for each day. You can then generate a report or (even better) create a graph of the daily activity.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Have;
input daily_batch alc odn accounting;
datalines;
1 . . 1 
1 . . 7 
1 . 2 1 
1 . 3 . 
1 . . 8 
2 4 . 1 
2 0 . 7 
2 . 2 1 
2 . 3 . 
2 . 4 8 
3 0 . . 
3 . 0 7 
3 2 2 1 
3 . 3 2 
3 . . 2
;
 
proc means data=Have NMISS noprint;
by daily_batch;
var alc odn accounting;
output out=Want NMISS=;
run;

proc print data=Want;
var daily_batch alc odn accounting;
run;

proc sgplot data=Want;
series x=daily_batch y=alc / markers curvelabel;
series x=daily_batch y=odn / markers curvelabel;
series x=daily_batch y=accounting / markers curvelabel;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 15:43:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/trend-analysis/m-p/567969#M27954</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-06-21T15:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: trend analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/trend-analysis/m-p/567989#M27955</link>
      <description>Thank you. I will accept this as a solution. Have a great weekend.</description>
      <pubDate>Fri, 21 Jun 2019 16:20:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/trend-analysis/m-p/567989#M27955</guid>
      <dc:creator>mauri0623</dc:creator>
      <dc:date>2019-06-21T16:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: trend analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/trend-analysis/m-p/567991#M27956</link>
      <description>&lt;P&gt;Sorry. My mistake. The alc, odn, and accounting are character variables and not numeric.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 16:30:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/trend-analysis/m-p/567991#M27956</guid>
      <dc:creator>mauri0623</dc:creator>
      <dc:date>2019-06-21T16:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: trend analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/trend-analysis/m-p/568000#M27957</link>
      <description>&lt;P&gt;Okay, so convert the character variables to a numeric indicator variable and then use my original solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
data Two / view=Two;
set Have(rename=(alc=char_alc odn=char_odn accounting=char_accounting));
alc = ifn(char_alc=" ", ., 1);
odn = ifn(char_odn=" ", ., 1);
accounting = ifn(char_accounting=" ", ., 1);
run;

proc means data=Two NMISS noprint;
by daily_batch;
var alc odn accounting;
output out=Want NMISS=;
run;

proc print data=Want;
var daily_batch alc odn accounting;
run;

proc sgplot data=Want;
series x=daily_batch y=alc / markers curvelabel;
series x=daily_batch y=odn / markers curvelabel;
series x=daily_batch y=accounting / markers curvelabel;
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 21 Jun 2019 17:15:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/trend-analysis/m-p/568000#M27957</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-06-21T17:15:30Z</dc:date>
    </item>
  </channel>
</rss>

