Commit becb20c5 authored by Antonino D'Anna's avatar Antonino D'Anna

Bugfix: in fit_routine, when C is not given, wpm is not givent to pvalue

parent a2f4bcfc
...@@ -175,7 +175,7 @@ function fit_routine(model::Function, ...@@ -175,7 +175,7 @@ function fit_routine(model::Function,
chiexp,pval = if length(C) !=0 chiexp,pval = if length(C) !=0
GammaMethod.chiexp(chisq,LsqFit.coef(fit),value.(ydata),C,W),juobs.pvalue(chisq,chi2,LsqFit.coef(fit),ydata,W,C=C) GammaMethod.chiexp(chisq,LsqFit.coef(fit),value.(ydata),C,W),juobs.pvalue(chisq,chi2,LsqFit.coef(fit),ydata,W,C=C)
else else
ADerrors.chiexp(chisq,LsqFit.coef(fit),ydata,wpm,W=W),juobs.pvalue(chisq,chi2,LsqFit.coef(fit),ydata,W) ADerrors.chiexp(chisq,LsqFit.coef(fit),ydata,wpm,W=W),juobs.pvalue(chisq,chi2,LsqFit.coef(fit),ydata,W,wpm=wpm)
end end
if !isnothing(logfile) if !isnothing(logfile)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment