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: Error when setting significance level using ttest2
Replies: 3   Last Post: Mar 26, 2013 12:19 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: 858
Registered: 12/7/04
Re: Error when setting significance level using ttest2
Posted: Mar 25, 2013 9:54 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

> [h,p,ci,stats] = ttest2(myData1,myData2,'Alpha',0.01)
> ... using the proper syntax prescribed here:
> the function call fails, and I get the error message:
> ALPHA must be a scalar between 0 and 1.

The ttest2 function was changed in a recent release to support a parameter
name/value syntax. Could it be that you are using an older release? Try
"help ttest2" to see if that syntax is shown. Under the older syntax, which
still works even in newer releases, you would type

[...] = ttest2(myData1, myData2, 0.01)

-- Tom

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.