![]() |
spa |
|
Choices to make when fitting data with nonlinear regression
No matter what program you use for nonlinear regression, you need to follow these steps. Step 1. Choose a model Nonlinear regression fits a model to your data. You must, therefore, choose a model. With most programs (including GraphPad Prism) this model must be expressed as a mathematical function. With some programs you can express the model as a set of differential equations or as a compartment diagram of boxes and arrows. See Classic equations commonly used by biologists and How models are derived. Also see Why a computer program cannot pick a model for you. With some programs (including Prism) you can write an equation in a manner that lets you have different models for different portions of your data. Step 2. Choose (or review) initial values Nonlinear regression is an iterative procedure. The program must start with estimated values for each variable that are in the right "ball park" - say within a factor of five of the actual value. It then adjusts these initial values to improve the fit. See How nonlinear regression works. Some programs (including GraphPad Prism) provide initial values automatically. With Prism, initial values are entirely automatic if you use a built-in equation. If you enter your own equation, you can also enter rules for initial values. For example the initial value of one parameter may be twice the maximum Y value in the data, while the initial value of another parameter may equal the average of the highest and lowest X values. Once you define these rules, Prism will compute appropriate initial values based on the range of your data. See Initial values with Prism. You'll find it easy to estimate initial values if you have looked at a graph of the data, understand the model, and understand the meaning of all the parameters in the equation. Remember that you just need an estimate. It doesn't have to be very accurate. If you are having problems estimating initial values, set aside your data and simulate curves using the model. Change the variables one at a time, and see how they influence the shape of the curve. Once you have a better feel for how the parameters influence the curve, you might find it easier to estimate initial values. When fitting a simple model to clean data, it won't matter much if the initial values are fairly far from the correct values. You'll get the same best-fit curve no matter what initial values you use, unless the initial values are extremely far from correct. Initial values matter more when your data have a lot of scatter or your model has many variables. Step 3. Decide whether to constrain any parameters When performing nonlinear regression, you don't have to fit each parameter in the equation. Instead, you may fix one or more of the parameters to constant values. It is often helpful to define constants when you have only a few data points. For example, you might fix the bottom plateau of a sigmoid curve or exponential decay to zero. Remember that nonlinear regression programs have no "common sense". You need to think about how you did the experiment, and decide whether some of the parameters should be fixed. For example, if a background signal has already been subtracted, it makes sense to fix the bottom plateau of a dose-response curve or an exponential decay curve to zero. Some programs let you constrain parameters to a certain range of values. Prism lets you do this in an indirect manner. Step 4. Decide on a weighting scheme Nonlinear regression programs generally weight each point equally. But there are many ways to differentially weight the points. See Weighting methods. Step 5. Decide how to handle replicate values (if any) If you collected replicate Y values at every value of X, there are two ways Prism can fit a model to the data. It can treat each replicate as a separate point, or average the replicate Y values, and treat the mean as a single point. You should consider each replicate a separate point when the replicates are independent. Two examples:
Step 6. Choose other options Most programs offer a variety of choices about how the calculations are performed. For example, see Method options with Prism and Output options with Prism |
| All contents copyright © 1999 by GraphPad Software, Inc. All rights reserved. |