# Nonlinear least squares

I have a typical nonlinear least square problem and it seems very similar to the example provided in the section on parameter fitting at the Wolfram website. Unfortunately I always get some error messages.

My code is as follows - could anyone help get rid of the error messages?

fitdata = {{1962, 0}, {1963, 0.9}, {1964, 2.4}, {1965, 6.2}, {1966, 11.3},
{1967, 17.1}, {1968, 22.95}, {1969, 28.85}, {1970, 33.55}};

pfun = ParametricNDSolveValue[
{ Derivative[1][x][t] == m (a (1 - x[t]) + b (1 - x[t]) x[t]^h),
x[0] == 0},
x, {t, 0, 10}, {a , b, h, m}];

fit = FindFit[ fitdata,
pfun[a, b, h, m][t],
{{a, 0.02}, {b, 0.5}, {h, 0.8}, {m, 42}}, t]

-
Hi Said, and welcome to Mathematica.SE! I edited your question's formatting - there's a relevant section in faq that tells you how you can do it yourself. I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Read the faq! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! –  gpap Sep 17 at 11:29
The m is a redundant parameter here! –  PlatoManiac Sep 17 at 12:37