-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get the p_value of the whole model #77
Comments
I just created an example that adds a test for model significance, and get's a p-value for the entire model. https://github.com/cjekel/piecewise_linear_fit_py/blob/master/examples/test_for_model_significance.py As defined in Section 2.4.1 of Myers RH, Montgomery DC, Anderson-Cook CM. Response surface methodology . Hoboken. New Jersey: John Wiley & Sons, Inc. 2009;20:38-44. In the linear model case we setup a hypothesis test as: In the non-linear model case, we'll include the breakpoints as beta parameters. (since the breakpoints are unknown model parameters). You reject H0 when p-values are less than some alpha. Please leave this issue open, as the object should include this method! |
Great! You slove my problem. |
Hi~ Thanks for the great work! I ran your code above, but I am confused for the result:
|
Does the following change impact these results?
Yup, nice catch! SSR in my code is actually SSE in that book, and vice versa. Sorry about this. (look how this wiki article uses ESS and RSS, and the E and R in theses are swapped from the above book https://en.wikipedia.org/wiki/Explained_sum_of_squares ) |
The answer to this is yes. Fixed in 101711b Many thanks to @kM-Stone for catching this mistake. |
To clarify, all uses of |
yeah, through my_pwlf.p_values() i can get the calculate the p-value for each beta parameter. Like first the beta parameters (intercept + slopes) and then the breakpoints.
but how to get the whole model p_value ?
The text was updated successfully, but these errors were encountered: