Problem: You are running a standard quadratic (polynomial) regression analysis, and are specifically interested in the X and Y values at the peak. If you use standard regression software, typically there will be no option that allows the peak to be estimated, with standard errors.
Example: You are studying Growth as a function of Age. Of particular interest is when maximum Growth occurs, and at what Age.
SAS code to generate artificial data, and run the analysis is:
data one;
do Age=1 to 20;
Growth=95 + 2.7*Age - .3*Age*Age + 5*rannor(22);
end;
proc nlin plots=fit;
parms int=2 lin=1 quad=1;
model Growth = int + lin*Age + quad*Age*Age;
estimate 'Age at peak' -lin/(2*quad);
estimate 'Growth at peak' int + lin*(-lin/(2*quad)) + quad*(-lin/(2*quad))*(-lin/(2*quad));
run;
Additional Estimates | ||||||||
---|---|---|---|---|---|---|---|---|
Label | Estimate | Standard Error |
DF | t Value | Approx Pr > |t| |
Alpha | Approximate Confidence Limits |
|
Age at peak | 5.4310 | 0.7727 | 17 | 7.03 | <.0001 | 0.05 | 3.8007 | 7.0613 |
Growth at peak | 97.1044 | 1.7731 | 17 | 54.76 | <.0001 | 0.05 | 93.3634 | 100.8 |
Comments
Post a Comment