The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Bootci usage: passing vectors into function
Replies: 3   Last Post: Apr 6, 2012 12:41 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 2
Registered: 4/5/12
Bootci usage: passing vectors into function
Posted: Apr 5, 2012 2:31 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply


I am trying to use bootci to generate confidence intervals on a fit to data. My code is:

[ci,bootstat] = bootci(100,{fitData,data,v1,v2,scalar},'alpha',.1)

where fitData is a function that returns a scalar from the fit to data (data is the set to be sampled with replacement). The variables v1 and v2 (two vectors) and one scalar are needed by the function.

As I understand it, the problem is that the function, fitData, also needs those two vectors v1 and v2. However, I do not wish to sample from. My understanding from the documentation is bootstrp and bootci automatically samples from all vectors passed to the function. Is this correct? If it is, is there a way to change that?

Thanks, Gabriela

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.