comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » MPFIT: 95% Confidence Interval ?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
MPFIT: 95% Confidence Interval ? [message #90206] Tue, 10 February 2015 16:20 Go to previous message
limiqt is currently offline  limiqt
Messages: 27
Registered: October 2013
Junior Member
Hi everyone,

I was wondering if someone knows how to plot the 95% CI using the MPFIT curve fitting (http://www.physics.wisc.edu/~craigm/idl/fitting.html).

In the example I can fit my model but now I need to plot the 95% CI as well as the prediction intervals.

;====
Pro fitmydata

X=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
Y=[5, 10, 6, 20, 30, 20, 60, 90, 70, 100]

expr='P[0]*(X^P[1])'
start = [1D, 0.5]
Yfit = MPFITEXPR(expr, X, Y, 1, start)
fitS=Yfit(0)*(X^Yfit(1))

cgwindow
cgplot, X, Y, psym=16,symsize=1, /noerase, /AddCMD
cgoplot,X, fitS, thick=2, color='red',/AddCMD

End

;====

I will appreciate any assistance,

Thanks,

Lim
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: image function question
Next Topic: Motley library on Sourceforge

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:59:05 PDT 2025

Total time taken to generate the page: 0.00457 seconds