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
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.

Under construction. Email me your wish list for improvements.