Topic
to display the results of the regression formula on the chart type ?
Home page › Community › FPScript › to display the results of the regression formula on the chart type ?
- This topic has 5 replies and 2 voices and was last updated 15 years, 7 months ago ago by sylvain bressieux.
-
AuthorPosts
-
12.10.2009 at 20:02 #33192sylvain bressieuxParticipant
Hello,
On my chart, I have a curve data and a linear regression line, and I’d like to display the results of the regression formula on the chart type
A.X = Y + B.
How does one on FlexPro?Thank you in advance for your reply
Example:
[img]uid6438_linear regression.bmp[/img]12.10.2009 at 20:02 #33197sylvain bressieuxParticipantHello,
On my chart, I have a curve data and a linear regression line, and I’d like to display the results of the regression formula on the chart type
A.X = Y + B.
How does one on FlexPro?Thank you in advance for your reply
Example:
[img]uid6438_linear regression.bmp[/img]12.10.2009 at 22:58 #33193Bernhard KantzParticipantUse the analysis object [b]Linear Regression[/b] (New|Curve Fitting|Linear Regression) to calculate the linear regression. Choose the result type [b]Dynamically calculated regression coefficients[/b]. Rename the analysis object into “Regression”.
Insert a label in the 2D-diagram with the content: Y = %{Regression[0]} + %{Regression[1]} * x13.10.2009 at 20:10 #33194sylvain bressieuxParticipantWhy when I use “Calculate regression” coefficients calculated are accurate
(in our example a = 0.2359 …, and b = -4.4705 …)[img]uid6438_linear regression1.bmp[/img]But showing on the curve, the result is not the same!
[img]uid6438_linear regression2.bmp[/img]14.10.2009 at 18:26 #33195Bernhard KantzParticipantThe script is correct. We cannot reproduce your problem. Perhaps the diagram is not up-to-date. Please click on [b]Update[/b] or [b]Force Update[/b].
If this suggestion doesn’t solve your problem, please send your database together with the information about your FlexPro version (8.0.xx) to support@weisang.com.
14.10.2009 at 20:47 #33196sylvain bressieuxParticipantI found the problem, I had not checked the right option that is “the result type Dynamically calculated regression coefficients”
thank you for everything -
AuthorPosts
- You must be logged in to reply to this topic.