<?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: ERROR: Dependent variable is not in the input data set in nlmixed in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613204#M18372</link>
    <description>&lt;P&gt;Dear&amp;nbsp;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892" target="_self"&gt;&lt;SPAN class="login-bold"&gt;PaigeMiller,&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Thanks for your response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I sent all procedure in the last post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you have any idea to solve this error.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 20 Dec 2019 09:25:36 GMT</pubDate>
    <dc:creator>mahdiamah</dc:creator>
    <dc:date>2019-12-20T09:25:36Z</dc:date>
    <item>
      <title>ERROR: Dependent variable is not in the input data set in nlmixed</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613074#M18349</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have run proc nlmixed to run "marginalized&lt;BR /&gt;random-effects model" and faced to this error:&lt;/P&gt;&lt;P&gt;"ERROR: Dependent variable is not in the input data set"&lt;/P&gt;&lt;P&gt;I checked my data and variables. But i could not find out what is the problem.&lt;/P&gt;&lt;P&gt;SAS does not accept my Dependent variable or any other kind of variable as&amp;nbsp;Dependent variable!&lt;/P&gt;&lt;P&gt;I tried on my variables in different models and i could take response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any one to help me?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 15:41:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613074#M18349</guid>
      <dc:creator>mahdiamah</dc:creator>
      <dc:date>2019-12-19T15:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Dependent variable is not in the input data set in nlmixed</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613079#M18350</link>
      <description>&lt;P&gt;When you get an error it is best to copy from the log the procedure code and any messages from the log and paste the copied text into a code box opened on the forum with the {I} icon. The code box is important to preserve formatting of error messages and the main message windows on this forum will reformat text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check your MODEL statement. The first thing after model should be a variable in the data. You may have a subtle type like Var0 instead of VarO&amp;nbsp; (zero vs capital O) or similar.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 15:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613079#M18350</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-12-19T15:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Dependent variable is not in the input data set in nlmixed</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613088#M18351</link>
      <description>&lt;P&gt;Also check the name of the data set you are using.&amp;nbsp; Perhaps you added the dependent to a new data set, but the PROC still uses the old data set.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 16:12:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613088#M18351</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-12-19T16:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Dependent variable is not in the input data set in nlmixed</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613146#M18363</link>
      <description>Dear ballardw and Astounding&lt;BR /&gt;Thank you for your attentions.&lt;BR /&gt;I opened and copied all variables from my data to the model. The data set is correct too.I even tried for other responses. But the error is still the same.&lt;BR /&gt;{NOTE: The parameter repeat is assigned the default starting value of 1.0, because it is not&lt;BR /&gt;assigned an initial value with the PARMS statement.&lt;BR /&gt;WARNING: Parameter group_a is in the input data set.&lt;BR /&gt;WARNING: Parameter Time_num is in the input data set.&lt;BR /&gt;WARNING: Parameter group_b is in the input data set.&lt;BR /&gt;WARNING: Parameter Time_num is in the input data set.&lt;BR /&gt;ERROR: Dependent variable is not in the input data set.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE NLMIXED used (Total process time):&lt;BR /&gt;real time 0.05 seconds&lt;BR /&gt;cpu time 0.04 seconds&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Dec 2019 20:57:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613146#M18363</guid>
      <dc:creator>mahdiamah</dc:creator>
      <dc:date>2019-12-19T20:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Dependent variable is not in the input data set in nlmixed</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613147#M18364</link>
      <description>&lt;P&gt;Repeating what&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;said&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN&gt;copy from the log the procedure code and any messages from the log and paste the copied text into a code box opened on the forum with the {I} icon."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;we need to see the CODE you used (as shown in the log) and the ERROR messages in the log, in other words the entire log for this PROC, pasted into the {i} window.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We probably also need to see the PROC CONTENTS output of the data set you are using for this NLMIXED. (Copy and paste into a new {i} window)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 21:12:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613147#M18364</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-12-19T21:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Dependent variable is not in the input data set in nlmixed</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613168#M18368</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/304192"&gt;@mahdiamah&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Dear ballardw and Astounding&lt;BR /&gt;Thank you for your attentions.&lt;BR /&gt;I opened and copied all variables from my data to the model. The data set is correct too.I even tried for other responses. But the error is still the same.&lt;BR /&gt;{NOTE: The parameter repeat is assigned the default starting value of 1.0, because it is not&lt;BR /&gt;assigned an initial value with the PARMS statement.&lt;BR /&gt;WARNING: Parameter group_a is in the input data set.&lt;BR /&gt;WARNING: Parameter Time_num is in the input data set.&lt;BR /&gt;WARNING: Parameter group_b is in the input data set.&lt;BR /&gt;WARNING: Parameter Time_num is in the input data set.&lt;BR /&gt;ERROR: Dependent variable is not in the input data set.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE NLMIXED used (Total process time):&lt;BR /&gt;real time 0.05 seconds&lt;BR /&gt;cpu time 0.04 seconds&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Here is an example of what I mean by "copy from the log" and paste into code box opened with the {I}&lt;/P&gt;
&lt;PRE&gt;908  proc nlmixed data=work.theoph;
909     parms beta1=-3.22 beta2=0.47 beta3=-2.45
910           s2b1 =0.03  cb12 =0    s2b2 =0.4 s2=0.5;
911     cl   = exp(beta1 + b1);
912     ka   = exp(beta2 + b2);
913     ke   = exp(beta3);
914     pred = dose*ke*ka*(exp(-ke*time)-exp(-ka*time))/cl/(ka-ke);
915     model conc ~ normal(pred,s2);
916     random b1 b2 ~ normal([0,0],[s2b1,cb12,s2b2]) subject=subject;
917  run;

ERROR: QUANEW Optimization cannot be completed.
NOTE: Optimization routine cannot improve the function value.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE NLMIXED used (Total process time):
      real time           2.38 seconds
      cpu time            2.00 seconds
&lt;/PRE&gt;
&lt;P&gt;This Error is likely because the example data set used is limited in content. Put please notice that the entire procedure is present from the Proc to the Run statement. That way it is easy to see every single option used.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I change the spelling of the variable on the Model statement:&lt;/P&gt;
&lt;PRE&gt;918  proc nlmixed data=work.theoph;
919     parms beta1=-3.22 beta2=0.47 beta3=-2.45
920           s2b1 =0.03  cb12 =0    s2b2 =0.4 s2=0.5;
921     cl   = exp(beta1 + b1);
922     ka   = exp(beta2 + b2);
923     ke   = exp(beta3);
924     pred = dose*ke*ka*(exp(-ke*time)-exp(-ka*time))/cl/(ka-ke);
925     model conco ~ normal(pred,s2);
926     random b1 b2 ~ normal([0,0],[s2b1,cb12,s2b2]) subject=subject;
927  run;

ERROR: Dependent variable is not in the input data set.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE NLMIXED used (Total process time):
      real time           0.01 seconds
      cpu time            0.00 seconds

&lt;/PRE&gt;
&lt;P&gt;Which shows &lt;STRONG&gt;the exact same error you claim to be getting.&lt;/STRONG&gt; I know the set used in my example Nlmixed code does not have a variable named Conco so the error is not unexpected. This is why I strongly suspect either you have a typo for the variable on the model statement or possibly are using an incorrect data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I run Proc Contents on the dataset used in the Proc Nlmixed data= such as&lt;/P&gt;
&lt;PRE&gt;proc contents data=work.theoph;
run;&lt;/PRE&gt;
&lt;P&gt;Part of the output looks like:&lt;/P&gt;
&lt;PRE&gt;Alphabetic List of Variables and Attributes

#    Variable    Type    Len

3    conc        Num       8
4    dose        Num       8
1    subject     Num       8
2    time        Num       8
5    wt          Num       8


&lt;/PRE&gt;
&lt;P&gt;Where in my case it is very easy to see that the variable name is not &lt;STRONG&gt;conco&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;Which is why &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;suggesting showing us the result of Proc contents on the data set used in Proc Nlmixed along with the code with messages from the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Dec 2019 22:47:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613168#M18368</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-12-19T22:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Dependent variable is not in the input data set in nlmixed</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613190#M18371</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884" target="_self"&gt;&lt;SPAN class="login-bold"&gt;ballardw&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{proc nlmixed data=new qpoints=50 maxiter=1000;&lt;BR /&gt;parms a1=-1.35 a2=-0.74 Time_a=-0.02 group_a=0.09 cs_a=0.97 LAS_a=-0.29&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b1=-6.67 b2=-2.58 Time_b=-0.03 group_b=0.76 cs_b=0.21 LAS_b=0.03&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1=0.35 s2=0.5 s12=0.1;&lt;BR /&gt;*y1 = HH;&lt;BR /&gt;if j in (1,2,3,4,5,6,7)then do;&lt;BR /&gt;eta1 = group_a*Time_a + cs_a*cs_a + LAS_a*LAS_a;&lt;BR /&gt;delta11= sqrt(1+s1**2) * PROBIT( exp(a1+eta1)/(1+exp(a1+eta1)));&lt;BR /&gt;delta12= sqrt(1+s1**2) * PROBIT( exp(a2+eta1)/(1+exp(a2+eta1)));&lt;BR /&gt;if ordinal=1 then do;&lt;BR /&gt;lik= probnorm (delta11+u1);&lt;BR /&gt;end;&lt;BR /&gt;if ordinal=2 then do;&lt;BR /&gt;lik= 1- probnorm (delta12+u1);&lt;BR /&gt;end;&lt;BR /&gt;if (lik &amp;gt; 1e-10) then loglik = log(lik);&lt;BR /&gt;else loglik = 1e100;&lt;BR /&gt;end;&lt;BR /&gt;*y2 = LL;&lt;BR /&gt;if j in (1,2,3,4,5,6,7)then do;&lt;BR /&gt;eta2 = group_b*Time_b + cs_b*cs_b + LAS_b*LAS_b;&lt;BR /&gt;delta21 = sqrt(1+s2**2) * PROBIT( exp(b1+eta2)/(1+exp(b1+eta2)));&lt;BR /&gt;delta22 = sqrt(1+s2**2) * PROBIT( exp(b2+eta2)/(1+exp(b2+eta2)));&lt;BR /&gt;if ordinal=1 then do;&lt;BR /&gt;lik = PROBNORM(delta21+u2);&lt;BR /&gt;end;&lt;BR /&gt;if ordinal=1 then do;&lt;BR /&gt;lik= 1- probnorm (delta22+u2);&lt;BR /&gt;end;&lt;BR /&gt;if (lik &amp;gt; 1e-10) then loglik = log(lik);&lt;BR /&gt;else loglik = 1e100;&lt;BR /&gt;end;&lt;BR /&gt;model ordinal ~ general(loglik);&lt;BR /&gt;random u1 u2 ~ normal ([0,0] , [s1**2,s12,s2**2]) subject=id;&lt;BR /&gt;estimate "Rho" s12/(s1*s2);&lt;BR /&gt;run;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{NOTE: The parameter j is assigned the default starting value of 1.0, because it is not&lt;BR /&gt;assigned an initial value with the PARMS statement.&lt;BR /&gt;WARNING: Parameter Time_a is in the input data set.&lt;BR /&gt;WARNING: Parameter group_a is in the input data set.&lt;BR /&gt;WARNING: Parameter cs_a is in the input data set.&lt;BR /&gt;WARNING: Parameter LAS_a is in the input data set.&lt;BR /&gt;WARNING: Parameter Time_b is in the input data set.&lt;BR /&gt;WARNING: Parameter group_b is in the input data set.&lt;BR /&gt;WARNING: Parameter cs_b is in the input data set.&lt;BR /&gt;WARNING: Parameter LAS_b is in the input data set.&lt;BR /&gt;ERROR: Dependent variable is not in the input data set.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE NLMIXED used (Total process time):&lt;BR /&gt;real time 1.10 seconds&lt;BR /&gt;cpu time 0.12 seconds}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Alphabetic List of Variables and Attributes# Variable Type Len Format Label9238101145671 &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;HH&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;HH.&lt;/TD&gt;&lt;TD&gt;HH&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;LAS_a&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;F12.&lt;/TD&gt;&lt;TD&gt;LAS_a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;LAS_b&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;F8.2&lt;/TD&gt;&lt;TD&gt;LAS_b&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;LL&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;LL.&lt;/TD&gt;&lt;TD&gt;LL&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Time_a&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;F8.2&lt;/TD&gt;&lt;TD&gt;Time_a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Time_b&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;F8.2&lt;/TD&gt;&lt;TD&gt;Time_b&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cs_a&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;F12.&lt;/TD&gt;&lt;TD&gt;cs_a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;cs_b&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;F8.2&lt;/TD&gt;&lt;TD&gt;cs_b&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;group_a&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;GROUP_AA.&lt;/TD&gt;&lt;TD&gt;group_a&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;group_b&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;GROUP_BA.&lt;/TD&gt;&lt;TD&gt;group_b&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;id&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;F8.2&lt;/TD&gt;&lt;TD&gt;id&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I look forward to your reply&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 06:31:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613190#M18371</guid>
      <dc:creator>mahdiamah</dc:creator>
      <dc:date>2019-12-20T06:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Dependent variable is not in the input data set in nlmixed</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613204#M18372</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892" target="_self"&gt;&lt;SPAN class="login-bold"&gt;PaigeMiller,&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Thanks for your response.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I sent all procedure in the last post.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you have any idea to solve this error.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 09:25:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613204#M18372</guid>
      <dc:creator>mahdiamah</dc:creator>
      <dc:date>2019-12-20T09:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Dependent variable is not in the input data set in nlmixed</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613263#M18381</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/304192"&gt;@mahdiamah&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Dear&amp;nbsp;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884" target="_self"&gt;&lt;SPAN class="login-bold"&gt;ballardw&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thank you for your response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{proc nlmixed data=new qpoints=50 maxiter=1000;&lt;BR /&gt;parms a1=-1.35 a2=-0.74 Time_a=-0.02 group_a=0.09 cs_a=0.97 LAS_a=-0.29&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b1=-6.67 b2=-2.58 Time_b=-0.03 group_b=0.76 cs_b=0.21 LAS_b=0.03&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;s1=0.35 s2=0.5 s12=0.1;&lt;BR /&gt;*y1 = HH;&lt;BR /&gt;if j in (1,2,3,4,5,6,7)then do;&lt;BR /&gt;eta1 = group_a*Time_a + cs_a*cs_a + LAS_a*LAS_a;&lt;BR /&gt;delta11= sqrt(1+s1**2) * PROBIT( exp(a1+eta1)/(1+exp(a1+eta1)));&lt;BR /&gt;delta12= sqrt(1+s1**2) * PROBIT( exp(a2+eta1)/(1+exp(a2+eta1)));&lt;BR /&gt;if ordinal=1 then do;&lt;BR /&gt;lik= probnorm (delta11+u1);&lt;BR /&gt;end;&lt;BR /&gt;if ordinal=2 then do;&lt;BR /&gt;lik= 1- probnorm (delta12+u1);&lt;BR /&gt;end;&lt;BR /&gt;if (lik &amp;gt; 1e-10) then loglik = log(lik);&lt;BR /&gt;else loglik = 1e100;&lt;BR /&gt;end;&lt;BR /&gt;*y2 = LL;&lt;BR /&gt;if j in (1,2,3,4,5,6,7)then do;&lt;BR /&gt;eta2 = group_b*Time_b + cs_b*cs_b + LAS_b*LAS_b;&lt;BR /&gt;delta21 = sqrt(1+s2**2) * PROBIT( exp(b1+eta2)/(1+exp(b1+eta2)));&lt;BR /&gt;delta22 = sqrt(1+s2**2) * PROBIT( exp(b2+eta2)/(1+exp(b2+eta2)));&lt;BR /&gt;if ordinal=1 then do;&lt;BR /&gt;lik = PROBNORM(delta21+u2);&lt;BR /&gt;end;&lt;BR /&gt;if ordinal=1 then do;&lt;BR /&gt;lik= 1- probnorm (delta22+u2);&lt;BR /&gt;end;&lt;BR /&gt;if (lik &amp;gt; 1e-10) then loglik = log(lik);&lt;BR /&gt;else loglik = 1e100;&lt;BR /&gt;end;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT size="6"&gt;model &lt;U&gt;ordinal&lt;/U&gt; ~ general(loglik);&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;random u1 u2 ~ normal ([0,0] , [s1**2,s12,s2**2]) subject=id;&lt;BR /&gt;estimate "Rho" s12/(s1*s2);&lt;BR /&gt;run;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;{NOTE: The parameter j is assigned the default starting value of 1.0, because it is not&lt;BR /&gt;assigned an initial value with the PARMS statement.&lt;BR /&gt;WARNING: Parameter Time_a is in the input data set.&lt;BR /&gt;WARNING: Parameter group_a is in the input data set.&lt;BR /&gt;WARNING: Parameter cs_a is in the input data set.&lt;BR /&gt;WARNING: Parameter LAS_a is in the input data set.&lt;BR /&gt;WARNING: Parameter Time_b is in the input data set.&lt;BR /&gt;WARNING: Parameter group_b is in the input data set.&lt;BR /&gt;WARNING: Parameter cs_b is in the input data set.&lt;BR /&gt;WARNING: Parameter LAS_b is in the input data set.&lt;BR /&gt;ERROR: Dependent variable is not in the input data set.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE NLMIXED used (Total process time):&lt;BR /&gt;real time 1.10 seconds&lt;BR /&gt;cpu time 0.12 seconds}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="branch"&gt;
&lt;DIV&gt;
&lt;DIV align="center"&gt;Alphabetic List of Variables and Attributes# Variable Type Len Format Label9238101145671
&lt;TABLE cellspacing="0" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;HH&lt;/TD&gt;
&lt;TD&gt;Num&lt;/TD&gt;
&lt;TD&gt;8&lt;/TD&gt;
&lt;TD&gt;HH.&lt;/TD&gt;
&lt;TD&gt;HH&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;LAS_a&lt;/TD&gt;
&lt;TD&gt;Num&lt;/TD&gt;
&lt;TD&gt;8&lt;/TD&gt;
&lt;TD&gt;F12.&lt;/TD&gt;
&lt;TD&gt;LAS_a&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;LAS_b&lt;/TD&gt;
&lt;TD&gt;Num&lt;/TD&gt;
&lt;TD&gt;8&lt;/TD&gt;
&lt;TD&gt;F8.2&lt;/TD&gt;
&lt;TD&gt;LAS_b&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;LL&lt;/TD&gt;
&lt;TD&gt;Num&lt;/TD&gt;
&lt;TD&gt;8&lt;/TD&gt;
&lt;TD&gt;LL.&lt;/TD&gt;
&lt;TD&gt;LL&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Time_a&lt;/TD&gt;
&lt;TD&gt;Num&lt;/TD&gt;
&lt;TD&gt;8&lt;/TD&gt;
&lt;TD&gt;F8.2&lt;/TD&gt;
&lt;TD&gt;Time_a&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Time_b&lt;/TD&gt;
&lt;TD&gt;Num&lt;/TD&gt;
&lt;TD&gt;8&lt;/TD&gt;
&lt;TD&gt;F8.2&lt;/TD&gt;
&lt;TD&gt;Time_b&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;cs_a&lt;/TD&gt;
&lt;TD&gt;Num&lt;/TD&gt;
&lt;TD&gt;8&lt;/TD&gt;
&lt;TD&gt;F12.&lt;/TD&gt;
&lt;TD&gt;cs_a&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;cs_b&lt;/TD&gt;
&lt;TD&gt;Num&lt;/TD&gt;
&lt;TD&gt;8&lt;/TD&gt;
&lt;TD&gt;F8.2&lt;/TD&gt;
&lt;TD&gt;cs_b&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;group_a&lt;/TD&gt;
&lt;TD&gt;Num&lt;/TD&gt;
&lt;TD&gt;8&lt;/TD&gt;
&lt;TD&gt;GROUP_AA.&lt;/TD&gt;
&lt;TD&gt;group_a&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;group_b&lt;/TD&gt;
&lt;TD&gt;Num&lt;/TD&gt;
&lt;TD&gt;8&lt;/TD&gt;
&lt;TD&gt;GROUP_BA.&lt;/TD&gt;
&lt;TD&gt;group_b&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;id&lt;/TD&gt;
&lt;TD&gt;Num&lt;/TD&gt;
&lt;TD&gt;8&lt;/TD&gt;
&lt;TD&gt;F8.2&lt;/TD&gt;
&lt;TD&gt;id&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I look forward to your reply&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;Ordinal&lt;/STRONG&gt; as used in the MODEL statement must be a variable in the data set.&lt;/P&gt;
&lt;P&gt;The Proc Contents does not show a variable Ordinal. Hence the error message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Extracted from the Nlmixed Model statement documentation:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;You must specify a &lt;STRONG&gt;single dependent variable from the input data set&lt;/STRONG&gt;, a tilde &lt;SPAN class=" AAsim"&gt;~&lt;/SPAN&gt;, and then a distribution with its parameters.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;my emphasis added.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 15:54:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613263#M18381</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-12-20T15:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Dependent variable is not in the input data set in nlmixed</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613303#M18391</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="login-bold"&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884" target="_self"&gt;ballardw,&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;I am very thankful for your help.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Since my response is ordinal,how can i change the type of my variables?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Data entry was done in SPSS software. Is there any way to change variable type in SAS or other&amp;nbsp;software?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 19:13:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613303#M18391</guid>
      <dc:creator>mahdiamah</dc:creator>
      <dc:date>2019-12-20T19:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR: Dependent variable is not in the input data set in nlmixed</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613348#M18395</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/304192"&gt;@mahdiamah&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;SPAN&gt;Dear&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="login-bold"&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884" target="_self"&gt;ballardw,&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;I am very thankful for your help.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;Since my response is ordinal,how can i change the type of my variables?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="login-bold"&gt;Data entry was done in SPSS software. Is there any way to change variable type in SAS or other&amp;nbsp;software?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Typically the SAS modeling procedures have a value you supply as a dependent variable along with independent variables and you are attempting to fit parameters with those independent variables that give you the "best" approach to approximating the dependent values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So if you don't have any actual dependent value what are you modeling??? There isn't a question of "change variable type" as you haven't identified any variable that may need to change type (I don't think that is needed). I would expect a variable on the Model statement to possibly indicate the number of successful trials of attempts, or a measurement value under different conditions or some similar "result".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 20:57:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ERROR-Dependent-variable-is-not-in-the-input-data-set-in-nlmixed/m-p/613348#M18395</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-12-20T20:57:03Z</dc:date>
    </item>
  </channel>
</rss>

