[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
error and confidence interval in leasqr
From: |
oxyopes |
Subject: |
error and confidence interval in leasqr |
Date: |
Mon, 23 Jul 2007 17:27:09 +0200 |
Hello,
sorry if it looks silly, but how can i calculate the fitting error for a
certain confidence interval in leasqr, like:
F = @(x,p) p(1)*exp(-p(2)*x);
[f1, p1, kvg1, iter1, corp1, covp1, covr1, stdresid1, Z1, r21] = ...
leasqr(var1, var2, pin, F );
printf("p(2) = %.3f +- %.3f for %d%% confidence", p(2), ?, ?)
A second question is how to make the p(2) value and the error
agree in number of decimal points, ie how to define %.3f in
printf if the necessary number of decimal points can change
from problem to problem. Is there a routine to automate that?
Thanks a lot in advance ...
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- error and confidence interval in leasqr,
oxyopes <=