get R square from data and fit function
R_square(data, ff, para, extra)
data | numeric matrix. |
---|
numeric scalar. \(R^2\) (coefficient of determination) showing how
well the function fits data
R_square(data1, f_protein, ideal.para11, extra11)#> [1] 1R_square(data1, f_protein, ideal.para11, extra12)#> [1] 0.577768R_square(data2, f_AI2_out, ideal.para2, extra2)#> [1] 1