Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
jpenuliar
Partner - Specialist III
Partner - Specialist III

Linest_R2 optional value - how to use

Hi All,


Does any one have an example of using Linest_R2 function with the optional value?


LINEST_R2 (y-value, x-value[, y0 [, x0 ]])


I am trying to get R2 when forced through origin. I have already derived R2(intercept) in R and Excel(linest function) and now only need to see if possible using qlik linest_r2 function.


Thanks for the help.



Regards,

JP

Labels (1)
2 Replies
Frank_Hartmann
Master II
Master II

try this:

=LINEST_R2(total aggr(Y,X),X)

or


=LINEST_R2(total aggr(sum(Y),X),X)


hope this helps

jpenuliar
Partner - Specialist III
Partner - Specialist III
Author

Hi Frank,

That is only evaluating the R2 of Y and X the usual way. What i am after is with optional parameters y0, x0, forcing the regression line to pass through the y-axis at a given point