<?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: How do I plot a growth equation? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-plot-a-growth-equation/m-p/313929#M16530</link>
    <description>&lt;P&gt;I can give you a couple of pieces ... perhaps enough that you can figure the rest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC PLOT is expecting to see variable names, not equations. &amp;nbsp;So your DATA step has to calculate all the variables, and all the points of interest. &amp;nbsp;Something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Data&lt;/STRONG&gt; VonBert;&lt;/P&gt;
&lt;P&gt;Input Linf k t0;&lt;/P&gt;
&lt;P&gt;do time=1 to 20;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Lt= some formula goes here;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;output;&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;datalines;&lt;/P&gt;
&lt;P&gt;900 0.15 -0.99&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then plot what I think would be Lt on the Y axis and Time on the x axis:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc plot data=vonbert;&lt;/P&gt;
&lt;P&gt;plot Lt * time;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This may not be the entire answer, but it's a step forward.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Nov 2016 00:37:55 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2016-11-24T00:37:55Z</dc:date>
    <item>
      <title>How do I plot a growth equation?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-plot-a-growth-equation/m-p/313922#M16529</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a what I believe is a really simple question. I don't work in SAS very often, and am trying to use it to gain more comfort with basic functions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to plot a Von Bertalanffy growth equation Lt=Linf*(1-exp(-k*(age-t0))) where Lt is length at age t. I am working with fish, and want to use this plot to find what length they would be expected to be at age 1-20.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The parameters for the equation are Linf=900, k=0.15, t0=-0.99&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Below is my failed attempt at plotting the equation. Clearly I'm off base. I'd appreciate help in getting it to plot, and finding lengths at age.&lt;BR /&gt;Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data&lt;/STRONG&gt; VonBert;&lt;/P&gt;&lt;P&gt;Input Linf k t0;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;900 0.15 -0.99&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt; &lt;STRONG&gt;plot&lt;/STRONG&gt; data=VonBert;&lt;/P&gt;&lt;P&gt;plot Linf*(&lt;STRONG&gt;1&lt;/STRONG&gt;-exp(-k*(age-t0)));&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Nov 2016 23:50:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-plot-a-growth-equation/m-p/313922#M16529</guid>
      <dc:creator>lmt88</dc:creator>
      <dc:date>2016-11-23T23:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: How do I plot a growth equation?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-plot-a-growth-equation/m-p/313929#M16530</link>
      <description>&lt;P&gt;I can give you a couple of pieces ... perhaps enough that you can figure the rest.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC PLOT is expecting to see variable names, not equations. &amp;nbsp;So your DATA step has to calculate all the variables, and all the points of interest. &amp;nbsp;Something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Data&lt;/STRONG&gt; VonBert;&lt;/P&gt;
&lt;P&gt;Input Linf k t0;&lt;/P&gt;
&lt;P&gt;do time=1 to 20;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;Lt= some formula goes here;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;output;&lt;/P&gt;
&lt;P&gt;end;&lt;/P&gt;
&lt;P&gt;datalines;&lt;/P&gt;
&lt;P&gt;900 0.15 -0.99&lt;/P&gt;
&lt;P&gt;;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then plot what I think would be Lt on the Y axis and Time on the x axis:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc plot data=vonbert;&lt;/P&gt;
&lt;P&gt;plot Lt * time;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This may not be the entire answer, but it's a step forward.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2016 00:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-plot-a-growth-equation/m-p/313929#M16530</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-11-24T00:37:55Z</dc:date>
    </item>
  </channel>
</rss>

