<?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: need help in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/need-help/m-p/27597#M6318</link>
    <description>Thank you very much Oliver. Now it works fine. But in my plot a have a line between the two independent graphs. can you say me what I can do to eleminate this connecting line?&lt;BR /&gt;
&lt;BR /&gt;
best regards</description>
    <pubDate>Wed, 25 Jun 2008 15:10:02 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-06-25T15:10:02Z</dc:date>
    <item>
      <title>need help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/need-help/m-p/27595#M6316</link>
      <description>Dear all,&lt;BR /&gt;
&lt;BR /&gt;
I have an error in the communication between my program and the data table (variables).&lt;BR /&gt;
For a Bertalanffy growth curve I had programmed the following program (see below). Now I have a Problem with my variables in the data table and I don´t find the error. &lt;BR /&gt;
These are my variables: &lt;BR /&gt;
Paar	Zeit  	Laenge Id	Id2	Id3	Id4	Id5	Id6	Id7	Id8	Id9	Id10	Id11	Id12	Id13	Id14	Id15	Id16	Id17	Id18	Id19	Id20	Id21	Id22	Id23	Id24&lt;BR /&gt;
Paar is nominal, the rest numeric.&lt;BR /&gt;
Zeit=Time in days (range from 1-160)&lt;BR /&gt;
Laenge= Height (range from 10.1 -19.00 cm)&lt;BR /&gt;
The other variables stands for each animal (1,0,0,0,0........,2,1,0,0,0...,3,2,1,0,0 etc.)&lt;BR /&gt;
Can anyone help me with this problem? Thank you very much!&lt;BR /&gt;
&lt;BR /&gt;
Here is the program:&lt;BR /&gt;
&lt;BR /&gt;
DATA test;&lt;BR /&gt;
     RETAIN L0       12&lt;BR /&gt;
            dL0       2&lt;BR /&gt;
            Lunendl  16&lt;BR /&gt;
            dLunendl  1.5&lt;BR /&gt;
            k         0.007&lt;BR /&gt;
            dk       -0.001;&lt;BR /&gt;
     Do Id = 0,1;&lt;BR /&gt;
       Do t = 0 To 154 BY 7;&lt;BR /&gt;
         L0eff = L0      + dL0 * Id;&lt;BR /&gt;
         LUeff = Lunendl + dLunendl*Id;&lt;BR /&gt;
         keff  = k       + dk*Id;&lt;BR /&gt;
         L = L0eff +&lt;BR /&gt;
             (LUeff- L0eff) * (1-Exp(-keff * t)) + 0.01*RANNOR(12345);&lt;BR /&gt;
         KEEP t Id L;&lt;BR /&gt;
         Output;&lt;BR /&gt;
       End;&lt;BR /&gt;
     End;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
*** Anpassung von-Bertalanffy für zwei Tiere (ein Paar) simultan&lt;BR /&gt;
*** maximales Modell: alle Parameter können spezifisch pro Tier sein;&lt;BR /&gt;
&lt;BR /&gt;
PROC NLIN DATA=test OUTEST=param MAXITER=10000;&lt;BR /&gt;
     PARM L0=11 12 13&lt;BR /&gt;
          dL0 = 1.5 To 2.5 BY 0.5&lt;BR /&gt;
          Lunendl=15 16 17&lt;BR /&gt;
          dLunendl = 1.5 To 2.5 BY 0.5&lt;BR /&gt;
          k= 0.0006 0.0007 0.0008&lt;BR /&gt;
          dk = -0.0001 0.0000 0.0001&lt;BR /&gt;
          ;&lt;BR /&gt;
     L0eff = L0      + dL0 * Id;&lt;BR /&gt;
     LUeff = Lunendl + dLunendl*Id;&lt;BR /&gt;
     keff  = k       + dk*Id;&lt;BR /&gt;
     MODEL  L = L0eff +&lt;BR /&gt;
               (LUeff- L0eff) * (1-Exp(-keff * t));&lt;BR /&gt;
     Output OUT=test P=PredL1 R=Res1 L95m=CiuL1 U95m=CioL1;&lt;BR /&gt;
  TITLE "[1] Anpassung von 2 von-Bertalanffy-Kurven";&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
Symbol1 V=CIRCLE I=NONE C=RED;&lt;BR /&gt;
Symbol2 V=NONE   I=Join C=BLUE;&lt;BR /&gt;
Symbol3 V=NONE   I=Join C=BLUE L=3;&lt;BR /&gt;
&lt;BR /&gt;
PROC GPLOT DATA=test;&lt;BR /&gt;
     PLOT L     * t = 1&lt;BR /&gt;
          PredL * t = 2&lt;BR /&gt;
          CiuL  * t = 3&lt;BR /&gt;
          CioL  * t = 3 / OVERLAY;&lt;BR /&gt;
     TITLE "[1] Anpassung von 2 von-Bertalanffy-Kurven";&lt;BR /&gt;
RUN;&lt;BR /&gt;
QUIT;&lt;BR /&gt;
&lt;BR /&gt;
PROC UNIVARIATE DATA=test PLOT NORMAL;&lt;BR /&gt;
     VAR Res1;&lt;BR /&gt;
     HISTOGRAM Res1 / NORMAL(Color=RED);&lt;BR /&gt;
     BY Id;&lt;BR /&gt;
     TITLE1 "[1] Anpassung von 2 von-Bertalanffy-Kurven";&lt;BR /&gt;
     TITLE2 "[1] Test der Residuen auf Normalverteilung";&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
DATA Test;&lt;BR /&gt;
     Set test;&lt;BR /&gt;
     BY  Id;&lt;BR /&gt;
     If FIRST.Id Then LagRes1 = .;&lt;BR /&gt;
     Else             LagRes1 = LAG(Res1);&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
PROC CORR DATA=Test;&lt;BR /&gt;
     VAR Res1 LagRes1;&lt;BR /&gt;
     BY Id;&lt;BR /&gt;
     TITLE1 "[1] Anpassung von 2 von-Bertalanffy-Kurven";&lt;BR /&gt;
     TITLE2 "[1] Test der Residuen auf Autokorrelation 1. Ordnung";&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
*** Anpassung von-Bertalanffy für zwei Tiere (ein Paar) simultan&lt;BR /&gt;
*** eingeschränktes Modell: alle Parameter bis auf Maximum können spezifisch&lt;BR /&gt;
    pro Tier sein;&lt;BR /&gt;
&lt;BR /&gt;
PROC NLIN DATA=test OUTEST=param MAXITER=10000;&lt;BR /&gt;
     PARM L0=11 12 13&lt;BR /&gt;
          dL0 = 1.5 To 2.5 BY 0.5&lt;BR /&gt;
          Lunendl=15 16 17&lt;BR /&gt;
          k= 0.0006 0.0007 0.0008&lt;BR /&gt;
          dk = -0.0001 0.0000 0.0001&lt;BR /&gt;
          ;&lt;BR /&gt;
     L0eff = L0      + dL0 * Id;&lt;BR /&gt;
     LUeff = Lunendl;&lt;BR /&gt;
     keff  = k       + dk*Id;&lt;BR /&gt;
     MODEL  L = L0eff +&lt;BR /&gt;
               (LUeff- L0eff) * (1-Exp(-keff * t));&lt;BR /&gt;
     Output OUT=test P=PredL2 L95m=CiuL2 U95m=CioL2;&lt;BR /&gt;
  TITLE "[2] Anpassung von 2 von-Bertalanffy-Kurven";&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
Symbol1 V=CIRCLE I=NONE C=RED;&lt;BR /&gt;
Symbol2 V=NONE   I=Join C=BLUE;&lt;BR /&gt;
Symbol3 V=NONE   I=Join C=BLUE L=3;&lt;BR /&gt;
&lt;BR /&gt;
PROC GPLOT DATA=test;&lt;BR /&gt;
     PLOT L     * t = 1&lt;BR /&gt;
          PredL * t = 2&lt;BR /&gt;
          CiuL  * t = 3&lt;BR /&gt;
          CioL  * t = 3 / OVERLAY;&lt;BR /&gt;
     TITLE "[2] Anpassung von 2 von-Bertalanffy-Kurven, eingeschränktes Modell";&lt;BR /&gt;
RUN;&lt;BR /&gt;
QUIT;&lt;BR /&gt;
&lt;BR /&gt;
*** Anpassung von-Bertalanffy für zwei Tiere (ein Paar) simultan&lt;BR /&gt;
*** weiter eingeschränktes Modell: alle Parameter bis auf Maximum können spezifisch&lt;BR /&gt;
    pro Tier sein;&lt;BR /&gt;
&lt;BR /&gt;
PROC NLIN DATA=test OUTEST=param MAXITER=10000;&lt;BR /&gt;
     PARM L0=11 12 13&lt;BR /&gt;
          dL0 = 1.5 To 2.5 BY 0.5&lt;BR /&gt;
          Lunendl=15 16 17&lt;BR /&gt;
          k= 0.0006 0.0007 0.0008&lt;BR /&gt;
          ;&lt;BR /&gt;
     L0eff = L0      + dL0 * Id;&lt;BR /&gt;
     LUeff = Lunendl;&lt;BR /&gt;
     keff  = k       ;&lt;BR /&gt;
     MODEL  L = L0eff +&lt;BR /&gt;
               (LUeff- L0eff) * (1-Exp(-keff * t));&lt;BR /&gt;
     Output OUT=test P=PredL3 L95m=CiuL3 U95m=CioL3;&lt;BR /&gt;
  TITLE "[3] Anpassung von 2 von-Bertalanffy-Kurven";&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
Symbol1 V=CIRCLE I=NONE C=RED;&lt;BR /&gt;
Symbol2 V=NONE   I=Join C=BLUE;&lt;BR /&gt;
Symbol3 V=NONE   I=Join C=BLUE L=3;&lt;BR /&gt;
&lt;BR /&gt;
PROC GPLOT DATA=test;&lt;BR /&gt;
     PLOT L     * t = 1&lt;BR /&gt;
          PredL * t = 2&lt;BR /&gt;
          CiuL  * t = 3&lt;BR /&gt;
          CioL  * t = 3 / OVERLAY;&lt;BR /&gt;
     TITLE "[3] Anpassung von 2 von-Bertalanffy-Kurven, weiter eingeschränktes Modell";&lt;BR /&gt;
RUN;&lt;BR /&gt;
QUIT;&lt;BR /&gt;
&lt;BR /&gt;
End Sub</description>
      <pubDate>Tue, 24 Jun 2008 18:32:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/need-help/m-p/27595#M6316</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-06-24T18:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/need-help/m-p/27596#M6317</link>
      <description>When I run your program, I have errors in the Gplot procedures : the variable names are wrong. In the first you, the correct code would be :&lt;BR /&gt;
[pre]PROC GPLOT DATA=test;&lt;BR /&gt;
PLOT L * t = 1&lt;BR /&gt;
PredL1 * t = 2&lt;BR /&gt;
CiuL1 * t = 3&lt;BR /&gt;
CioL1 * t = 3 / OVERLAY;&lt;BR /&gt;
TITLE "[1] Anpassung von 2 von-Bertalanffy-Kurven";&lt;BR /&gt;
RUN;&lt;BR /&gt;
QUIT;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
(there are "1" missing on three of the variables names)&lt;BR /&gt;
Bad copy &amp;amp; paste, it seems. And same problems with the other two Gplot procs.&lt;BR /&gt;
&lt;BR /&gt;
I don't know if it was the problem you were pointing at (I don't know of Bertalanffy growth curves at all) but I hope it will help...&lt;BR /&gt;
Regards.&lt;BR /&gt;
Olivier</description>
      <pubDate>Tue, 24 Jun 2008 18:55:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/need-help/m-p/27596#M6317</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2008-06-24T18:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/need-help/m-p/27597#M6318</link>
      <description>Thank you very much Oliver. Now it works fine. But in my plot a have a line between the two independent graphs. can you say me what I can do to eleminate this connecting line?&lt;BR /&gt;
&lt;BR /&gt;
best regards</description>
      <pubDate>Wed, 25 Jun 2008 15:10:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/need-help/m-p/27597#M6318</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-06-25T15:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: need help</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/need-help/m-p/27598#M6319</link>
      <description>What you need to separate both lines is to add a "blank" line (an observation with missing values) between the two blocks... And then add the SKIPMISS option in the PLOT statement (causing the lines to pause when meeting a missing value).&lt;BR /&gt;
For example :[pre]&lt;BR /&gt;
DATA work.test ;&lt;BR /&gt;
	SET work.test ;&lt;BR /&gt;
	BY id ;&lt;BR /&gt;
	OUTPUT ; /* save current obs */&lt;BR /&gt;
	IF LAST.id THEN DO ;&lt;BR /&gt;
		CALL MISSING(OF l--res1) ;&lt;BR /&gt;
		OUTPUT ; /* insert "blank" line */&lt;BR /&gt;
	END ;&lt;BR /&gt;
RUN ;&lt;BR /&gt;
Symbol1 V=CIRCLE I=NONE C=RED;&lt;BR /&gt;
Symbol2 V=NONE I=Join C=BLUE;&lt;BR /&gt;
Symbol3 V=NONE I=Join C=BLUE L=3;&lt;BR /&gt;
&lt;BR /&gt;
PROC GPLOT DATA=test;&lt;BR /&gt;
PLOT L * t = 1&lt;BR /&gt;
PredL1 * t = 2&lt;BR /&gt;
CiuL1 * t = 3&lt;BR /&gt;
CioL1 * t = 3 / OVERLAY SKIPMISS ;&lt;BR /&gt;
TITLE "[1] Anpassung von 2 von-Bertalanffy-Kurven";&lt;BR /&gt;
RUN;&lt;BR /&gt;
QUIT;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
Regards.&lt;BR /&gt;
Olivier</description>
      <pubDate>Thu, 26 Jun 2008 09:31:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/need-help/m-p/27598#M6319</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2008-06-26T09:31:20Z</dc:date>
    </item>
  </channel>
</rss>

