cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Problem with 4 parameter logistic fit for immunoassay

FDS
12-Amethyst
12-Amethyst

Problem with 4 parameter logistic fit for immunoassay

I found an (old) pdf file on the web that uses a 4 parameter logistic fit for immunoassay. Unfortunately I must be overlooking something as it does not work in MC15. Are there more elegant ways to do this 4 parameter logistic fit?

Thanks in advance

1 ACCEPTED SOLUTION

Accepted Solutions

Here is an approach using "minerr"

View solution in original post

9 REPLIES 9
Werner_E
24-Ruby V
(To:FDS)

Sure you can find a fit using a solve block with minerr and ever so often this has some advantages over using the built in "genfit" function.

But I doubt that the approach as posted by you ever worked in older Mathcad versions. We had to see the pdf to judge though.

Here is an approach using "genfit":

Here is an approach using "minerr"

FDS
12-Amethyst
12-Amethyst
(To:Werner_E)

Werner, thank you so much. Very helpful as usual.

FDS
12-Amethyst
12-Amethyst
(To:FDS)

I am sorry but there is still something wrong when I use a slightly different 4 parameter logistic fit in combination with real data. Could you have a second look?

Werner_E
24-Ruby V
(To:FDS)

Not sure why the solve block fails.

It may be due to the fact, that the x-values are not in sequence so I guess you cannot expect your function to follow that zigzag behavior of your data. (EDIT: No, thats not the case)

It may be because the function you like to fit (you changed the function definition) is not suitable for that data set (Probably true, but a normal logistic fit at least gives us a bad fit)

It may be due to bad guess values. If you plot your fit function using your guess values, the graph is way away from your data. If you put your x-values in this function, you get values bigger than 10^307 which throws an error. This may be the reason why genfit fails and throws the "this value must be real" error. (EDIT: no, the "not real" error has to be something else).

The solve block with minerr fails in your sheet because of the missing guess value for k.

I guess the problem are the guess values.

I played around with a normal three parameter logistic fit and got a (not so pretty good) solution. I am not sure  about your function an why you call it a logistic one. Maybe your function type is not adequate for this data or maybe its suitable for logarithmic data - not sure, just poking around.

Why do you think your function type and your guess values are suitable for your data set (the combination of function and guesses sure is not - just plot it to see)

WE

Werner_E
24-Ruby V
(To:FDS)

Here are suitable guess values for your function type.

The reason for the "not real value" seems o be that d (starting with the guess) has to be negative!

Werner_E
24-Ruby V
(To:FDS)

Here is a completely different solution found with the minerr solve block

VladimirN
24-Ruby II
(To:FDS)

Please find in the attachment another approximating model for your data.

FDS
12-Amethyst
12-Amethyst
(To:VladimirN)

Werner and Vladimir, thank you for your help. Fitting data to a standard in ELISA testing can be quite challenging so I appreciated all input.

Top Tags