<?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: Standard deviation with PROC NLMIXED in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Standard-deviation-with-PROC-NLMIXED/m-p/567582#M27937</link>
    <description>&lt;P&gt;The mean of what? Please show your PROC MEANS code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The NLMIXED code is computing the MLE of regression coefficients for a regression of&amp;nbsp; LB_qSTAanum_LOG_cop_cm&amp;nbsp;onto main and interaction effects of&amp;nbsp;produit and visite1 and visite2. You cannot duplicate that analysis by using PROC MEANS, which is a univariate analysis. You can try to use PROC GLM with a MODEL statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc glm&amp;nbsp;&lt;SPAN&gt;data=lbmain_inclus_final;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;MODEL LB_qSTAanum_LOG_cop_cm&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;= produit visite1 visite2 produit*visite1 produit*visite2;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/* optionally include an ESTIMATE statement */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jun 2019 11:48:34 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2019-06-20T11:48:34Z</dc:date>
    <item>
      <title>Standard deviation with PROC NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Standard-deviation-with-PROC-NLMIXED/m-p/567574#M27936</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use PROC NLMIXED to estimate a mean. And I wish to compare the result at the PROC MEANS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc nlmixed data=lbmain_inclus_final;&lt;BR /&gt;parms sigsq0=0.2 sigsqe=0.3 beta0=0.3851 beta1=0.1433 beta2=0.5633 beta3=0.01331 beta4=0.01 beta5=0.02 ;&lt;BR /&gt;bounds sigsq0 sigsqe &amp;gt;= 0;&lt;/P&gt;&lt;P&gt;pi=2*arsin(1);&lt;/P&gt;&lt;P&gt;mu=beta0+beta1*produit+beta2*visite1+beta3*visite2+beta4*produit*visite1+beta5*produit*visite2+ a_i;&lt;/P&gt;&lt;P&gt;ll=(1/(sqrt(2*pi*sigsqe)))*exp(-(LB_qSTAanum_LOG_cop_cm-mu)**2/(2*sigsqe));&lt;/P&gt;&lt;P&gt;L=log(ll);&lt;/P&gt;&lt;P&gt;model LB_qSTAanum_LOG_cop_cm ~ general(L);&lt;BR /&gt;random a_i ~ normal(0,sigsq0) subject=SUBJID;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/**Estimates**/&lt;/P&gt;&lt;P&gt;moy_v1_prod=beta0+beta1+beta2+beta4;&lt;BR /&gt;estimate "moy_v1 produit" moy_v1_prod;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With this code, I obtain the same mean that PROC MEANS but how obtain the standard deviation ? Because proc nlmixed give the standard error but when I calculate : sqrt(n)*standard_error, I don't obtain the same standard deviation that proc means. Is it normal ? Or, how obtain the good standard deviation with proc nlmixed ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;Clémence&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 11:01:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Standard-deviation-with-PROC-NLMIXED/m-p/567574#M27936</guid>
      <dc:creator>Clemence</dc:creator>
      <dc:date>2019-06-20T11:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Standard deviation with PROC NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Standard-deviation-with-PROC-NLMIXED/m-p/567582#M27937</link>
      <description>&lt;P&gt;The mean of what? Please show your PROC MEANS code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The NLMIXED code is computing the MLE of regression coefficients for a regression of&amp;nbsp; LB_qSTAanum_LOG_cop_cm&amp;nbsp;onto main and interaction effects of&amp;nbsp;produit and visite1 and visite2. You cannot duplicate that analysis by using PROC MEANS, which is a univariate analysis. You can try to use PROC GLM with a MODEL statement&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc glm&amp;nbsp;&lt;SPAN&gt;data=lbmain_inclus_final;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;MODEL LB_qSTAanum_LOG_cop_cm&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;= produit visite1 visite2 produit*visite1 produit*visite2;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/* optionally include an ESTIMATE statement */&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 11:48:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Standard-deviation-with-PROC-NLMIXED/m-p/567582#M27937</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-06-20T11:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Standard deviation with PROC NLMIXED</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Standard-deviation-with-PROC-NLMIXED/m-p/567585#M27938</link>
      <description>&lt;P&gt;My code is :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc means data=lbmain_inclus_final;&lt;BR /&gt;var LB_qSTAanum_LOG_cop_cm;&lt;BR /&gt;by prdt tv_visit;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I thought I could find the same results with proc nlmixed but yes, you are right , with proc nlmixed it's a multivariable analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 11:55:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Standard-deviation-with-PROC-NLMIXED/m-p/567585#M27938</guid>
      <dc:creator>Clemence</dc:creator>
      <dc:date>2019-06-20T11:55:47Z</dc:date>
    </item>
  </channel>
</rss>

