I am trying to assess the goodness of fit of a surface I've developed (i.e., model predicts a variable y based on 2 variables x1 and x2). My model has 5 parameters which are estimated (and is likely not a linear model).
I need a way to quantify the goodness of fit, and the sources below suggest "Standard Error":
- https://www.statology.org/standard-error-regression/
- https://statisticsbyjim.com/regression/standard-error-regression-vs-r-squared/
The standard error is a function of adjusted R2:
R2_adj = 1 - (1-R2)(n-1)/(n-p-1)
However, none of the sources I've found so far seem to be clear on (or I lack the background knowledge to understand) what the parameter p (or k) represents:
- https://en.wikipedia.org/wiki/Coefficient_of_determination#Adjusted_R2
- https://builtin.com/data-science/adjusted-r-squared
For example, Wikipedia says p is "the number of explanatory variables" BUT the footnote says "Assuming p+1 parameters are estimated" which is not true in my case.
I would like to use a metric that people generally understand, so R2 and S seem reasonable to use, but I would like to do my calculation correctly (even if my large sample size means p does not significantly impact R2_adj).