Brian Dunning's FileMaker Custom Functions

ValLeastSquaresSlope ( XValueList ; YValueList ; Xmean ; Ymean )

Calculates the slope of a set of X,Y pairs by least squares fit

  Average rating: 3.5 (2 votes) Log in to vote

Bill Thurmes   Bill Thurmes - Show more from this author
MDCA
http://www.miyotadca.com

Share on Facebook Share on Twitter

  Sample input:
ValLeastSquaresSlope ( "8¶2¶11" ; "3¶10¶3" ; 7 ; 5.333333 )
  Sample output:
-0.833333

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Calculates the slope of a set of X,Y pairs by applying a least squares fit
Note: The ¶-delimited list of X values must have the same ValueCount as the ¶-delimited list of Y values

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Support this website.

This library has been a free commmunity resource for FileMaker users and developers for 15 years. It receives no funding and has no advertisements. If it has helped you out, I'd really appreciate it if you could contribute whatever you think it's worth:

Under construction. Email me your wish list for improvements.