<?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: Limit distribution fitting function to only non-missing values in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Limit-distribution-fitting-function-to-only-non-missing-values/m-p/722095#M34989</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/370360"&gt;@Minh2710&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can exclude observations with missing &lt;FONT face="courier new,courier"&gt;Rate&lt;/FONT&gt; values by means of a WHERE statement:&lt;/P&gt;
&lt;PRE&gt;proc nlin data = example;
&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;where n(rate);&lt;/STRONG&gt;&lt;/FONT&gt;
...&lt;/PRE&gt;
&lt;P&gt;But PROC NLIN doesn't use those observations anyway in the process of estimating the parameters, see these lines in the output table "Estimation Summary" (obtained without the WHERE statement):&lt;/P&gt;
&lt;PRE&gt;Observations Read                 16
Observations Used                 10
Observations Missing               6&lt;/PRE&gt;
&lt;P&gt;So the WHERE statement doesn't change the model.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2021 10:52:58 GMT</pubDate>
    <dc:creator>FreelanceReinh</dc:creator>
    <dc:date>2021-02-26T10:52:58Z</dc:date>
    <item>
      <title>Limit distribution fitting function to only non-missing values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Limit-distribution-fitting-function-to-only-non-missing-values/m-p/722075#M34988</link>
      <description>&lt;P&gt;Hello. I have been using proc nlin to fit a pre-determined model to a set of value with relative success using the following line of code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data example;
	input Notch Rate;
	datalines;
1 0.101750388
2 0.02797293
3 0.007380199
4 0.003547882
5 0.002219785
6 0.000631796
7 0.000507642
8 0.000361024
9 0.000105668
10 0.000315689
11 .
12 .
13 .
14 .
15 .
16 .
;
run;

proc nlin data = example;
  parameters  alpha = 0
              beta = 0;
  model Rate = alpha * exp (beta * Notch);
  output out = exponential predicted = pred_exp sse = sse_exp;
run;

data exponential;
	set exponential;
	format pred_exp Rate percent10.4;
run;&lt;/PRE&gt;&lt;P&gt;However, as I get further, I need the fitting procedure to use only inputs to the last non-missing value (e.g. in this particular dataset, minimize the sum of squared errors of only up to first 10 observations (Notch = 10), but I also want to generalize the code to use on other datasets).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I really appreciate your help.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 09:08:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Limit-distribution-fitting-function-to-only-non-missing-values/m-p/722075#M34988</guid>
      <dc:creator>Minh2710</dc:creator>
      <dc:date>2021-02-26T09:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Limit distribution fitting function to only non-missing values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Limit-distribution-fitting-function-to-only-non-missing-values/m-p/722095#M34989</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/370360"&gt;@Minh2710&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can exclude observations with missing &lt;FONT face="courier new,courier"&gt;Rate&lt;/FONT&gt; values by means of a WHERE statement:&lt;/P&gt;
&lt;PRE&gt;proc nlin data = example;
&lt;FONT color="#3366FF"&gt;&lt;STRONG&gt;where n(rate);&lt;/STRONG&gt;&lt;/FONT&gt;
...&lt;/PRE&gt;
&lt;P&gt;But PROC NLIN doesn't use those observations anyway in the process of estimating the parameters, see these lines in the output table "Estimation Summary" (obtained without the WHERE statement):&lt;/P&gt;
&lt;PRE&gt;Observations Read                 16
Observations Used                 10
Observations Missing               6&lt;/PRE&gt;
&lt;P&gt;So the WHERE statement doesn't change the model.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 10:52:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Limit-distribution-fitting-function-to-only-non-missing-values/m-p/722095#M34989</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2021-02-26T10:52:58Z</dc:date>
    </item>
  </channel>
</rss>

