Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. nlmSimple =
  2. NonlinearModelFit[data, model, {{a, 20000}, {k1, 300}, {b, 20000}}, t, Weights -> 1/dataErr^2, VarianceEstimatorFunction -> (1 &)];
  3.  
  4. pearsonTest[obs_, exp_, dof_] /; Length[obs] == Length[exp] :=
  5. Block[{t}, t = Total[(obs - exp)^2/exp] // N;
  6. {t/(Length[exp] - dof),
  7. SurvivalFunction[ChiSquareDistribution[Length[exp] - dof], t]}];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement