<?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: TTest_t with alternate state in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/TTest-t-with-alternate-state/m-p/650173#M237819</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi whiteline,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I removed the comma but ended up in an error also. The above function forces me to specify a group as well as an expression. I don't know if qlikview can perform what is requested by my organization. Basically the requirement is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to calculate the p-value for an attending length of stay versus his peers. For all the other requested indicators, i was able to generate data using set analysis and alternate state, however for p-value regardless what I try no data is being generated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jun 2014 05:41:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-06-11T05:41:05Z</dc:date>
    <item>
      <title>TTest_t with alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/TTest-t-with-alternate-state/m-p/650171#M237817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone assist me on how to group TTest_t function with alternate state?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(ValueList (Dual('Equal Variance not Assumed', 0), Dual('Equal Variance Assumed', 1)),TTest_t({Cardiology}, (GENERAL_LOS)),TTest_t({Cardiology}, (GENERAL_LOS), 0))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 12:20:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TTest-t-with-alternate-state/m-p/650171#M237817</guid>
      <dc:creator />
      <dc:date>2014-06-10T12:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: TTest_t with alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/TTest-t-with-alternate-state/m-p/650172#M237818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The using of Alternate states in the expression imply correct set analysis syntax.&lt;/P&gt;&lt;P&gt;You don't need commas after the state name.&lt;/P&gt;&lt;P&gt;Refer to the QV help 'set analysis'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 13:25:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TTest-t-with-alternate-state/m-p/650172#M237818</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-06-10T13:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: TTest_t with alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/TTest-t-with-alternate-state/m-p/650173#M237819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi whiteline,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I removed the comma but ended up in an error also. The above function forces me to specify a group as well as an expression. I don't know if qlikview can perform what is requested by my organization. Basically the requirement is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to calculate the p-value for an attending length of stay versus his peers. For all the other requested indicators, i was able to generate data using set analysis and alternate state, however for p-value regardless what I try no data is being generated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 05:41:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TTest-t-with-alternate-state/m-p/650173#M237819</guid>
      <dc:creator />
      <dc:date>2014-06-11T05:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: TTest_t with alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/TTest-t-with-alternate-state/m-p/650174#M237820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P class="syntax"&gt;&lt;SPAN class="Bold"&gt;&lt;STRONG&gt;TTest_t&lt;/STRONG&gt; (&lt;/SPAN&gt;&lt;SPAN class="Italic"&gt;[set_expression][ &lt;SPAN class="Bold"&gt;total&lt;/SPAN&gt; [&amp;lt;fld {,fld}&amp;gt;] group, value [, eq_var = true]&lt;/SPAN&gt;&lt;SPAN class="Bold"&gt;)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;returns the aggregated t value for two independent series of values iterated over the chart dimension(s). The values should be returned by &lt;SPAN class="Italic"&gt;value&lt;/SPAN&gt; and be logically grouped via exactly two values in &lt;SPAN class="Italic"&gt;group&lt;/SPAN&gt;. If &lt;SPAN class="Italic"&gt;eq_var&lt;/SPAN&gt; is specified as false, separate variances of the two samples will be assumed, else equal variances between the samples will be assumed. Text values, null values and missing values in &lt;SPAN class="Italic"&gt;value&lt;/SPAN&gt; will result in the function returning null. &lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So you need to set up &lt;STRONG&gt;two&lt;/STRONG&gt; parameters correctly regardless of using set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 06:13:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TTest-t-with-alternate-state/m-p/650174#M237820</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2014-06-11T06:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: TTest_t with alternate state</title>
      <link>https://community.qlik.com/t5/QlikView/TTest-t-with-alternate-state/m-p/650175#M237821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Whiteline,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My report currently works based on two alternate states:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Group 1 that includes Doctor Specialty and Doctor Name&lt;/LI&gt;&lt;LI&gt;Group 2 that includes&amp;nbsp; Doctor Specialty and Doctor Name&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The user selects Doctor Specialty and one doctor from the first group, then from the second group selects the same Doctor Specialty and all the doctors in that specialty excluding the doctor chosen in group1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you mentioned above, in order for ttest to work, when the user chooses {Group1} Doctor name, the doctor has to be flagged as 1 and then when {Group2} Doctor names are clicked they all have to be flagged as 2. To do that, I created a variable called Doctor that on select takes the value of&amp;nbsp; {Group1} Doctor name and the formula became as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(ValueList (Dual('Equal Variance not Assumed', 0), Dual('Equal Variance Assumed', 1)),TTest_sig(&lt;/P&gt;&lt;P&gt;if( [Doctor Name] =(Doctor) ,'1',COUNT(distinct {Group2} ATTENDING_NAME)), Length_Of_Stay),&lt;/P&gt;&lt;P&gt;TTest_sig(if( [Doctor Name] = (Doctor) ,'1',COUNT(distinct {Group2} ATTENDING_NAME)), Length_Of_Stay, 0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the above is not returning any values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly assist.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 13:25:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/TTest-t-with-alternate-state/m-p/650175#M237821</guid>
      <dc:creator />
      <dc:date>2014-06-23T13:25:13Z</dc:date>
    </item>
  </channel>
</rss>

