<?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: How to use regression coefficient? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-use-regression-coefficient/m-p/621525#M478954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt&lt;/P&gt;&lt;P&gt;Qlikview has some regression functions (check out the ones beggining "LINEST..", but be aware that they are limited to linear only, not multiple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function for returning the coefficient for 2 fields is: linest_m(y,X)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you could use this like&lt;/P&gt;&lt;P&gt;=linest(COPD_Rates,Smoking_Rates) to look at the relationship between smoking rates and copd (emphysema rates)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most people's data isn't this straight forward and you can use it in conjunction with aggr to compare grouped results, eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=linest_m(aggr(sum(sales),Salesperson),aggr(sum(Days_worked),Salesperson))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other useful functions that work in the same way:&lt;/P&gt;&lt;P&gt;Linest_b : intercept&lt;/P&gt;&lt;P&gt;Linest_r2: correlation squared&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I personally prefer to do the regression in another program (eg R or SPSS) and import the results into QlikView if it's anything more complex than the above!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Feb 2014 12:48:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-02-27T12:48:48Z</dc:date>
    <item>
      <title>How to use regression coefficient?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-regression-coefficient/m-p/621524#M478953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am inexperienced with regression (OLS is fine) in QlikView but would like to use regression coefficient values to produce a regression control chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could accomplish this by either returning a coefficient as a value in an expression or by saving a coefficient as a variable to use elsewhere.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Feb 2014 21:33:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-regression-coefficient/m-p/621524#M478953</guid>
      <dc:creator />
      <dc:date>2014-02-23T21:33:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use regression coefficient?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-use-regression-coefficient/m-p/621525#M478954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt&lt;/P&gt;&lt;P&gt;Qlikview has some regression functions (check out the ones beggining "LINEST..", but be aware that they are limited to linear only, not multiple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function for returning the coefficient for 2 fields is: linest_m(y,X)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you could use this like&lt;/P&gt;&lt;P&gt;=linest(COPD_Rates,Smoking_Rates) to look at the relationship between smoking rates and copd (emphysema rates)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most people's data isn't this straight forward and you can use it in conjunction with aggr to compare grouped results, eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=linest_m(aggr(sum(sales),Salesperson),aggr(sum(Days_worked),Salesperson))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other useful functions that work in the same way:&lt;/P&gt;&lt;P&gt;Linest_b : intercept&lt;/P&gt;&lt;P&gt;Linest_r2: correlation squared&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I personally prefer to do the regression in another program (eg R or SPSS) and import the results into QlikView if it's anything more complex than the above!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Feb 2014 12:48:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-use-regression-coefficient/m-p/621525#M478954</guid>
      <dc:creator />
      <dc:date>2014-02-27T12:48:48Z</dc:date>
    </item>
  </channel>
</rss>

