Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

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


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

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 ]
Tom Lane

Posts: 854
Registered: 12/7/04
Re: Bootci usage: passing vectors into function
Posted: Apr 6, 2012 12:39 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

> [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.


Richard gave you a more elaborate example, but the basic idea is that you
can create a function of "data" only. Something like this:





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

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.