<?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: help using TEST in MIANALYZE in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/help-using-TEST-in-MIANALYZE/m-p/327796#M62418</link>
    <description>&lt;P&gt;Steve (and any others looking for an answer to this question) --&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I figured it out!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You CAN include multipliers in the test statement, you just have to enter them in a specific way...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if this is what you are testing:&lt;/P&gt;&lt;P&gt;3*(x1 + x2) + 9*(x3 + x4) = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to type the code this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;test 3*x1 +3*x2 + 9*x3 + 9*x4=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In other words, factor it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all of your help and feedback!&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2017 18:07:23 GMT</pubDate>
    <dc:creator>ErinB</dc:creator>
    <dc:date>2017-01-26T18:07:23Z</dc:date>
    <item>
      <title>help using TEST in MIANALYZE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/help-using-TEST-in-MIANALYZE/m-p/325410#M62232</link>
      <description>&lt;P&gt;I am using PROC MIANALYZE after PROC MIXED.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In trying to run a post-estimation test comparing two linear combinations of variables, using the TEST statement in PROC MIANALYZE, I am having trouble with what I am trying to do, so I am hoping someone can tell me if it is possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is an example of what I'm trying to do:&lt;/P&gt;&lt;P&gt;example1: test intercept + (b1*SOMECONSTANT) = intercept + (b1*SOMECONSTANT) + b2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In words, I have a value that I would like to plug into the linear equation to compare these two models to each other.&amp;nbsp; Essentially, this is comparing two predicted values to each other.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that I can run the test this way (because I have run this and it works):&lt;/P&gt;&lt;P&gt;example2: test intercept + b1= intercept + b1+ b2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, is there any way to multiply those coefficients (ex. b1) by a number?&amp;nbsp; Or, conversely, is my 2nd example a satisfactory test?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any advice!&lt;/P&gt;&lt;P&gt;Erin&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 18:48:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/help-using-TEST-in-MIANALYZE/m-p/325410#M62232</guid>
      <dc:creator>ErinB</dc:creator>
      <dc:date>2017-01-17T18:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: help using TEST in MIANALYZE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/help-using-TEST-in-MIANALYZE/m-p/326113#M62292</link>
      <description>&lt;P&gt;I might be missing something obvious here, but why not use TEST b2=0, which comes out with a bit of algebra ? &amp;nbsp;I would think this would be valid for all values of SOMECONSTANT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I am missing the obvious, please post back.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2017 20:28:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/help-using-TEST-in-MIANALYZE/m-p/326113#M62292</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2017-01-19T20:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: help using TEST in MIANALYZE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/help-using-TEST-in-MIANALYZE/m-p/326825#M62348</link>
      <description>&lt;P&gt;Steve,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should've used my more complicated example, because what you're saying is accurate.&amp;nbsp; They would cancel out.&lt;/P&gt;&lt;P&gt;I'll use a few actual numbers here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 long linear combinations of numbers that I can get down to this formula:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;9* (x1) + 3*( x4 ) = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason why the 9 and the 3 are important is that they are indicators of time (months), so if I omit those constants, I am allowing x1, for example, to have the same "effect" as x4, for example.&amp;nbsp; x1 and x4 in this example are each something that reflects a 1 month change.&amp;nbsp; So in order to talk about the estimated effect of that 9 month time period, I need to multiply x1 by 9.&amp;nbsp; Similarly in order to talk about the estimated effect of the entire 3 month time period, I need to multiply the x4&amp;nbsp; by 3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use this test to compare the actual predicted values I calculated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for any suggestions or comments if I'm thinking about this in the wrong way!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jan 2017 19:58:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/help-using-TEST-in-MIANALYZE/m-p/326825#M62348</guid>
      <dc:creator>ErinB</dc:creator>
      <dc:date>2017-01-23T19:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: help using TEST in MIANALYZE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/help-using-TEST-in-MIANALYZE/m-p/327371#M62391</link>
      <description>&lt;P&gt;I would have to noodle this around some to see if it would even work, but what about preprocessing the output dataset from PROC MI to get a new variable that has the effect of getting the response down to what you are interested in, and then applying MIANALYZE to that? &amp;nbsp;It's the only thing I can think of currently.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 13:11:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/help-using-TEST-in-MIANALYZE/m-p/327371#M62391</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2017-01-25T13:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: help using TEST in MIANALYZE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/help-using-TEST-in-MIANALYZE/m-p/327449#M62394</link>
      <description>&lt;P&gt;Thanks for responding, Steve.&amp;nbsp; I'm not quite sure what you're thinking here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using &lt;STRONG&gt;PROC MIXED&lt;/STRONG&gt; for my analysis, so what are you thinking about what I could do in that step that would allow me to multiply variables and numbers together in the test statement for MIANALYZE?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had one other alternative idea -- but I'm not sure how this would work either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What if I just ran PROC MIXED on a single imputed data set (really, do it separately for each of my 10 data sets), and then ran some sort of post-estimation test after that? Not even worrying about the MIANALYZE step.&amp;nbsp;&amp;nbsp; Would there be a way to do my hypothesis tests that way?&amp;nbsp; Would I have to get creative with the ESTIMATE command?&amp;nbsp; I haven't used it before, so I'm not sure that could even allow for the multiplication by my 3 and 9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2017 16:59:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/help-using-TEST-in-MIANALYZE/m-p/327449#M62394</guid>
      <dc:creator>ErinB</dc:creator>
      <dc:date>2017-01-25T16:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: help using TEST in MIANALYZE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/help-using-TEST-in-MIANALYZE/m-p/327796#M62418</link>
      <description>&lt;P&gt;Steve (and any others looking for an answer to this question) --&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I figured it out!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You CAN include multipliers in the test statement, you just have to enter them in a specific way...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, if this is what you are testing:&lt;/P&gt;&lt;P&gt;3*(x1 + x2) + 9*(x3 + x4) = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to type the code this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;test 3*x1 +3*x2 + 9*x3 + 9*x4=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In other words, factor it out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for all of your help and feedback!&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 18:07:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/help-using-TEST-in-MIANALYZE/m-p/327796#M62418</guid>
      <dc:creator>ErinB</dc:creator>
      <dc:date>2017-01-26T18:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: help using TEST in MIANALYZE</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/help-using-TEST-in-MIANALYZE/m-p/328439#M62493</link>
      <description>&lt;P&gt;Mark your answer as correct!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for working this out, Erin. &amp;nbsp;It will be useful to many, including me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Steve Denham&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 14:48:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/help-using-TEST-in-MIANALYZE/m-p/328439#M62493</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2017-01-30T14:48:30Z</dc:date>
    </item>
  </channel>
</rss>

